Skip to main content
All CollectionsFAQsWebsite
How do I add a LinkedIn Insight Tag?
How do I add a LinkedIn Insight Tag?
Jamie Lubiner avatar
Written by Jamie Lubiner
Updated over 4 years ago

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.

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.

Add the LinkedIn Insight Tag

On the Site Settings screen, select the "Analytics" tab. In the "LinkedIn Insights" field, enter your tracking ID.

Add as code snippet

It is also possible to add the LinkedIn Insights Tag ID as a code snippet via the "Scripts" tab.

Step 1: Get your LinkedIn Insight Tag code

Please see above section.

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.

_linkedin_data_partner_id = "123456";(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);})(); 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?