MeasureSchool logo
Search
Close this search box.
Search
Close this search box.

How to Install the LinkedIn Insight Tag with Google Tag Manager

Last Modified on June 30, 2023

We are living in the world of data and analytics and Linkedin is a star here! Using its features like the LinkedIn insight tag allows you to learn about how people interact with your content, which can then help you make the most out of your ad spend.

So, do you want to obtain more data from your LinkedIn ad campaigns? We are here to help you with that!

GTM For Beginners

Sign up to the FREE GTM for Beginners Course...

The LinkedIn insight tag can help you track your conversions, retarget website visitors, and unlock additional insights about members interacting with your ads. With the help of Google Tag Manager, you can deploy this tracking code snippet to your website. 

In this guide, we’ll show you how to install the LinkedIn insight tag with Google Tag Manager.

Here is an overview of what we’ll cover:

Accessing LinkedIn Partner ID

First things first! Ensure that Google Tag Manager is already set up on your website. If it has been installed correctly, enter preview mode.

To install the LinkedIn insight tag, you need to grab your LinkedIn partner ID.

On your LinkedIn account, go to WorkAdvertise

Accessing LinkedIn campaign manager

This directs you to the LinkedIn campaign manager. 

Click on Account AssetsInsight Tag.

Accessing the insight tag

Next, you’ll have to specify the domain which the insight tag can pull data from.

Click on Add domain.

Adding a domain to the insight tag

Enter the domain name in the space provided, then click Save

Specifying the domain to be added

Next, go to Manage Insight TagSee tag.

Accessing the insight tag installation methods

This opens a window that shows the different methods of installing the insight tag.

Choose I will install the tag myself, then copy the tag code.

Copying the insight tag code

That’s a lot of code, but don’t worry! You only need the LinkedIn partner ID from here. 

Paste the entire code in a text editor, then copy the partner ID from the second line in the code.

Copying the LinkedIn partner ID from the insight tag code

Now that you have the partner ID, you can install the LinkedIn insight tag with Google Tag Manager.

Installing LinkedIn Insight Tag with Google Tag Manager

In your Google Tag Manager account, click on Add a new tag.

Creating a new tag in Google Tag Manager

Create a name for the tag, then click on Tag Configuration.

Naming the tag and adding a tag configuration

Search for LinkedIn from the list of templates. Then, select the LinkedIn Insight tag template.

Selecting the LinkedIn Insight tag template

Paste the partner ID in the space provided, then click on Triggering.

Specifying the partner ID and adding a trigger to the insight tag

Select the All Pages trigger.

Choosing the All Pages trigger

Finally, click on Save.

Saving the LinkedIn insight tag in Google Tag Manager

This LinkedIn insight tag will provide you with information about page views, and let you retarget and do conversion tracking.

Let’s see if the tag works by refreshing the preview and debug mode.

Click on Refresh

Refreshing the preview mode

Going to your website, you should view the insight tag successfully fired in the debug pane.

LinkedIn insight tag showing in the debug pane

Unfortunately, there is no tool or extension that you can use to easily verify if the LinkedIn insight tag is working correctly. The only way is to directly check the LinkedIn campaign manager.

Going back to the campaign manager, check if a signal has been received from your domain.

The last signal received indicator in LinkedIn campaign manager

This will usually show that no signal has been received and will take a while before it obtains a signal. Depending on your website traffic, it may take up to 24 hours. Check this again later to verify if the insight tag is working correctly.

Let’s go ahead and deploy this tag to all our website users.

Go back to Google Tag Manager, and click Submit.

Submitting a live version of the tags

Add a version name, then click Publish

Adding a version name and publishing a live version to the website

Installing Conversion Tracking for LinkedIn Ads

Now that you have installed the LinkedIn insight tag, you can do conversion tracking for your LinkedIn ad campaigns. 

 To do so, in the campaign manager, go to Conversions Create a conversion.

Creating a conversion in LinkedIn campaign manager

In this example, we’ll create a purchase conversion.

Create a name for the conversion, then select Purchase for the conversion type.

Creating a purchase conversion

Next, you can estimate how much this conversion is worth to your business. Ideally, the purchase conversion should have dynamic values to reflect your profits from each sale. 

However, you are limited to a single value. This means that you can either put an average value or leave it blank.

If you have already set up a campaign, you can then attach this conversion to your campaign. 

Selecting a campaign to track conversions

Lastly, you’ll define how you would like to track the conversion. You can either use the site-wide insight tag or deploy an event-specific Pixel that fires when the user performs a specific action.

The first option is for when the conversion you would like to track is on a specific page. This works great for our example as eCommerce sites usually redirect you to a thank you page or order completed page after completing a purchase.

Now, what if the conversion you want to track does not have a specific URL – for example, an add-to-cart button click? 

Usually, a popup appears showing the item you added to the cart, but you are still on the product page. This is where the second option can be utilized.

We’ll discuss how to set up tracking for both options, starting with the site-wide insight tag.

Let’s make a purchase! After the purchase is complete, copy the URL from the order received page.

Copying the order received page URL

Paste the URL in the space provided, then select Pages that start with this URL

Specifying the URL where to count conversions from

This opens a drop-down menu. You’ll have to only count conversions from pages with URLs containing “/order-received/” since the other parts of the order received page URL changes for every purchase.

Select have URLs that contain the specified text.

Selecting the URLs containing the specified text option

Delete other parts of the URL except for the “/order-received/” portion, then click Create.

Finalizing the creation of the purchase conversion

Great news! Now every time a user clicks on an ad and makes a purchase, it will be counted as a conversion.

Setting Up Event Tracking

Now that we have conversion tracking in place, let’s discuss how to track purchase conversions using the event-specific method.

Click on Create a conversion

Creating a new conversion

Create a name for the conversion, then select Purchase in the conversion type.

Creating another purchase conversion

Select Use an event-specific pixel to track when there is no unique URL, then copy the code for your image tag.

Tracking conversions using the event-specific method

This is specific to the purchase conversion you have set up. If you want to track other events like add to cart or lead, you should select the appropriate type, and then copy the updated code. 

You’ll then deploy a custom image tag. In our guide for GTM custom templates, we discussed how to use the LinkedIn event Pixel template when a user submits a form on the website. Check it out if it is more appropriate to the type of conversion you want to track.

Go to Tag Manager and click Tags New.

Creating a new tag

Select Tag ConfigurationCustom Image

Creating a custom image tag

Paste the image tag code in the image URL section. Discard other parts of the HTML except for the URL inside the source attribute.

Inserting the image URL for the custom image tag

Next, click on Triggering.

Inserting a trigger

Click on the + sign to create a new trigger.

Creating a custom trigger

Selecting the appropriate trigger for the tag depends on how your website has been set up. The general idea for this method is to fire your tag based on an event specifically occurring after making a purchase.

If you don’t have an appropriate event for your type of conversion, our guides on button-click tracking and form tracking techniques with GTM may help you in setting up custom events.

Looking at the preview mode, you now have a custom event from setting up Google Tag Manager for the WordPress plugin. You can use this event to create your custom trigger.

For doing so, in the custom event section, go to the Variables tab and copy the event name.

Copying the custom event name

Name the custom trigger, then select Trigger ConfigurationCustom Event.

Creating a custom event trigger

Paste the event name in the space provided, then click Save.

Specifying the custom event trigger

Finally, name the custom image tag and click Save.

Naming and saving the custom image tag

Testing

Now that all is done and dusted, let’s test if the tag is working properly by refreshing the preview mode.

Click on Refresh.

Refreshing the preview mode again

Go back to your website and make a purchase again. 

Once you have reached the order received page, you should see the custom image tag successfully fired in the debug pane.

Custom image tag in the debug pane

Finalize the creation of your event-specific purchase conversion by going back to your campaign manager and clicking on Create.

Finalizing the creation of the event-specific purchase conversion

This information should then be sent over to your LinkedIn account. Like the conversion tracking method using the site-wide LinkedIn insight tag, you have to be patient before seeing data in your campaign manager. 

Since you have created a new tag, you need to deploy this new tag for all your website users again.

To do that, go back to Google Tag Manager, and click Submit.

Submitting a live version of the tags again

Add a version name, then click Publish

Adding a version name and publishing a live version to the website again

FAQ

How do I access my LinkedIn Partner ID to install the insight tag?

To access your LinkedIn Partner ID, follow these steps:
1. Make sure Google Tag Manager is set up correctly on your website.
2. Log in to your LinkedIn account and go to Work > Advertise.
3. In the LinkedIn campaign manager, click on Account Assets > Insight Tag.
4. Specify the domain to be tracked by clicking on “Add domain” and entering the domain name.
5. Go to Manage Insight Tag > See tag. Copy the entire tag code and retrieve the LinkedIn Partner ID from the second line of the code.

How do I install the LinkedIn Insight Tag using Google Tag Manager?

To install the LinkedIn Insight Tag using Google Tag Manager, here’s what you need to do:
1. In your Google Tag Manager account, click on “Add a new tag.”
2. Name the tag and select “Tag Configuration.”
Search for “LinkedIn” in the list of templates and choose the LinkedIn Insight Tag template.
3. Paste your LinkedIn Partner ID in the designated field.
4. Configure the tag triggering, such as selecting the “All Pages” trigger.
5. Save the tag and test its functionality using the preview and debug mode in Google Tag Manager.
6. Once confirmed, publish the tag to make it live on your website.

What is the LinkedIn insight tag, and how can it benefit my ad campaigns?

The LinkedIn insight tag is a tracking code snippet provided by LinkedIn that allows you to gather valuable data about how people interact with your content and ads on LinkedIn. It helps you understand user behavior, track conversions, and gain insights to optimize your ad spend for better results.

Summary

Congratulations, you have made it to the end!

So, this is how you can install the LinkedIn insight tag with Google Tag Manager. With this tag installed, you can do conversion tracking for your LinkedIn ad campaigns, either through the site-wide insight tag or an event-specific Pixel.

Want to unlock the full capabilities of GTM? Our Google Tag Manager tutorial for beginners covers all the basics, like understanding what are GTM’s functions and features, how to install it, integrating tracking with other tools, and where to go next to continue learning.

What are the types of conversions you want to track for your LinkedIn ad campaigns? Which method of tracking is more appealing to you? Let us know in the comments below!

MeasureMasters

REOPENED!

Master Data & Analytics with MeasureMasters

Exclusive Courses & Workshops | Ongoing Troubleshooting | Support Resources, Tools & much more