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

  • unruhfurniture
    Asked on November 13, 2017 at 5:20 PM

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

    https://unruhfurniture.com/deposit/


    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');
    ...

    </script>

    Jotform Thread 1297920 Screenshot
  • Mike
    Replied on November 13, 2017 at 8: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.

  • unruhfurniture
    Replied on November 14, 2017 at 7:43 AM
    Thanks so much.
    Sam
    *Sam Unruh*
    Owner, Unruh Furniture
    cell: 816.808.5259
    ...