Can you help me Track Facebook Events via In-Line Action through my embedded Jotform Button

  • Profile Image
    Asked on November 13, 2017 at 05:20 PM

    I would like to add a piece of code to the submit button on this page:

    If you read the attached screenshot Facebook explains this In-Line action. Thanks for the help!

    From Facebook

    Paste the purchase event code
    It's recommended to track this event on page load. If using in-line events, add the event code to the HTML element for the complete order button.
    <button id="addToCartButton">Purchase</button>
    <script type="text/javascript">
    $( '#$addToCartButton' ).click(function() {
    fbq('track', 'Purchase');


  • Profile Image
    Answered on November 13, 2017 at 08:05 PM

    Thank you for contacting us.

    This is most likely that the Facebook tracking code will not work in combination with the form embed/iframe code due to the same origin policy. However, we also offer a source code embedding option, so you may try it with the Facebook code.

  • Profile Image
    Answered on November 14, 2017 at 07:43 AM
    Thanks so much.
    *Sam Unruh*
    Owner, Unruh Furniture
    cell: 816.808.5259