Use the LinkedIn Insight Tag to unlock robust campaign reporting, retargeting, and deeper insights about visitors. Follow the below steps to add it to your event website.

Step 1: Get your LinkedIn Insight Tag code

Detailed steps on how to access the LinkedIn Insight Tag can be found in the LinkedIn documentation. Please refer to the attached article from LinkedIn for instructions.

Step 2: Add the code to a .js file

After completing the above steps you will receive a snippet of code that looks similar to the code that you see below.

<script type="text/javascript">
_linkedin_data_partner_id = "123456";
</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://dc.ads.linkedin.com/collect/?pid=123456&fmt=gif" />
</noscript>
 Wrap

Create a new JavaScript file, e.g. eventname.js and save the code. If there is already code in the Custom Head JS field you can add this code to your new file or add above code to the existing file on your computer. 

Step 3: Adjust the code

The code that you copied in the previous step needs to be edited. The code in the <script> or <noscript> opening and closing tags need to be removed. 

Below you see the same code as above, except the code that needs to be removed has been bolded. Remove this code and save as a .js file. 

Note: This is a very important step and unless these sections of the code are removed the LinkedIn Insight Tag will not function properly. 

Step 4: Upload to Site Settings

On the Website tab, click the Site Settings menu item. Click the "Scripts" tab to upload your file. This file needs to be uploaded in the Custom Head JS section. Click to upload your file.

Note: If there is code present in the Custom Head JS field already, ensure that it is included in your new file as well. 

Step 5: Support users without JavaScript (optional)

The vast majority of users have JavaScript enabled. If you want to ensure that those that do not have JavaScript are also captured in the analysis, you can insert a LinkedIn Insight Tag image tag (similar to a tracking pixel).

Below is the code you first copied. The image tag is highlighted in green below, and it is the code that is between the <noscript> and </noscript> tag. Copy this code and add it to a Raw Code block. This needs to be done on every page of your event website. 

Did this answer your question?