How can I set up conversion tracking for a LinkedIn campaign in Webflow without using a thank you page?

Integrations Published on

Note FlowSuggest is not affiliated with Webflow. For official help, visit the Webflow community.

To set up conversion tracking for a LinkedIn campaign in Webflow without using a thank you page, you can use LinkedIn Insight Tag along with custom code in Webflow. Here's a step-by-step guide:

  1. Get the LinkedIn Insight Tag:
  • Log in to your LinkedIn Campaign Manager account and navigate to the "Account Assets" tab.
  • Select "Insight Tag" from the drop-down menu.
  • Click on "Get Started" and follow the instructions to generate your LinkedIn Insight Tag.
  1. Copy the LinkedIn Insight Tag:
  • Once you have the LinkedIn Insight Tag, copy the entire code snippet.
  1. Add the LinkedIn Insight Tag to your Webflow project:
  • Log in to your Webflow account and open the project where you want to add the LinkedIn Insight Tag.
  • Go to the Project Settings by clicking on the gear icon in the left sidebar.
  • In the Project Settings, select the "Custom Code" tab.
  • Paste the LinkedIn Insight Tag code snippet in the Header Code section.
  • Save the changes.
  1. Track conversions with custom code:
  • In Webflow, you can use custom code to track conversions. Instead of redirecting users to a thank you page, you will trigger the conversion event directly using JavaScript.
  • Identify the specific action or event on your Webflow site that you want to track as a conversion.
  • Add an HTML embed element to the page where the conversion happens.
  • In the HTML embed element, write JavaScript code to fire the LinkedIn conversion event when the desired action is completed by the user.
  • For example, if you want to track form submissions as conversions, you can use JavaScript code like:
    <script type="text/javascript">
    function trackConversion() {       // Fire the LinkedIn conversion event       _linkedin_data_partner_id = "YOUR_PARTNER_ID"; // Replace with your LinkedIn partner ID       (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>
  • Customize the trackConversion function to match your specific conversion event and replace YOUR_PARTNER_ID with your LinkedIn partner ID.
  1. Apply the custom code to your Webflow project:
  • Go to the page where the conversion event occurs and select the HTML embed element you added earlier.
  • In the settings panel, select the "Settings" tab.
  • Tick the "Code" box and paste the trackConversion() function in the "Code" field.
  • Save the changes.

By implementing the LinkedIn Insight Tag and custom code in Webflow, you can track conversions for your LinkedIn campaigns without relying on a thank you page. This method allows you to have more flexibility in tracking specific actions and events on your website.

Additional Questions:

  1. Can I use LinkedIn conversion tracking in Webflow with a thank you page?
  2. How do I find my LinkedIn partner ID for conversion tracking in Webflow?
  3. Are there any alternatives to LinkedIn Insight Tag for conversion tracking in Webflow?