How can I add a LinkedIn conversion/insight tag to a form?

  • Profile Image
    EETmarketing
    Asked on January 16, 2020 at 04:53 AM

    Hello,

    We are using a Jotform form (see link to the form below) in a campaign that we promote on LinkedIn and would now like to add a Insight code in the form so we can track conversions and see how many that is visiting the form via the advert on LinkedIn.

    Here is the instructions we have received from LinkedIn regarding how to add the needed code:

    Paste the Insight Tag code below in your website’s global footer, right above the closing HTML <body> tag. Adding the tag to the footer will let you track conversions or retarget on any page across your whole site.

    Here is the code we are supposed to add: 

    <script type="text/javascript">

    _linkedin_partner_id = "1720617";

    window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];

    window._linkedin_data_partner_ids.push(_linkedin_partner_id);

    </script><script type="text/javascript">

    (function(){var s = document.getElementsByTagName("script")[0];

    var b = document.createElement("script");

    b.type = "text/javascript";b.async = true;

    b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";

    s.parentNode.insertBefore(b, s);})();

    </script>

    <noscript>

    <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=1720617&fmt=gif" />

    </noscript>


    Is it possible to fix this and if so how can we add the needed code in the correct position?

    Regards Stefan Westman

  • Profile Image
    Kiran
    Answered on January 16, 2020 at 08:25 AM

    Unfortunately, it is not possible to add scripts or HTML code directly to the form due to security reasons. However, please try adding the noscript section of the code to the text field as shown in the below screencast to see if that works. 

    <noscript>

    <img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=1720617&fmt=gif" />

    </noscript>

    1579181059LinkedInTrackingCode.gif

    Please give it a try and let us know if you need any further assistance. We will be happy to help.