Do you know how to add custom code in Webflow to track events in LinkedIn campaign ads manager?
Published on
September 22, 2023
Yes, you can add custom code in Webflow to track events in LinkedIn Campaign Ads Manager. Here's how you can do it:
- Create a new script tag in Webflow:
- Open your Webflow project and go to the "Project Settings."
- Under the "Custom Code" tab, scroll down to the "Head Code" or "Footer Code" section, depending on where you want to place your code.
- Click the "+ Add Custom Code" button to create a new script tag.
- Get the LinkedIn Insight Tag code:
- Log in to your LinkedIn Campaign Ads Manager account.
- Navigate to the "Account Assets" tab and click on "Insight Tag."
- Copy the code provided by LinkedIn.
- Paste the LinkedIn Insight Tag code in the Webflow script tag:
- Go back to your Webflow project and paste the LinkedIn Insight Tag code into the newly created script tag.
- Make sure to place it between the opening
<script>
tag and the closing</script>
tag.
- Define the specific events you want to track:
- LinkedIn provides different event types you can track, such as page views, conversions, or sign-ups.
- To track a specific event, add the relevant LinkedIn tracking code provided by LinkedIn to the element or action you want to track.
- For example, if you want to track a button click event, you would add the LinkedIn tracking code to the button's
onclick
attribute.
- Publish your changes:
- After adding the LinkedIn Insight Tag code and defining the events to track, save your changes in Webflow.
- Publish your Webflow project for the changes to take effect on your live site.
By following these steps, you will be able to add custom code in Webflow to track events in LinkedIn Campaign Ads Manager. Remember to test the tracking to ensure that it is working correctly.
Additional questions related to this topic:
- How can I track events in Webflow using Google Analytics?
- What is the benefit of using custom code in Webflow?
- Can I integrate other third-party tracking tools with Webflow?