Portfolio Supported AIs Solutions Tasks Email Archive Bring Your Own Code Integrations Pricing

Get Started

ChatGPT

ChatGPT

Start directly →

Ready
Claude

Claude

Directory Connector →

Ready
Mistral

Mistral

Directory Connector →

Ready

Dashboard Always available
← All articles

linkedin insight tag

LinkedIn Insight Tag: What It Does and How to Install It

Learn what the LinkedIn Insight Tag tracks, how to install it site-wide, verify it fires, fix missing conversions, and handle consent rules in the US and EU.

The LinkedIn Insight Tag is a small JavaScript snippet from LinkedIn that you place on every page of your site. Once it is there, LinkedIn can measure conversions from your ads, build retargeting audiences from your visitors and show you who visits. The install is one paste into a shared footer, then a check in Campaign Manager. With WebsitePublisher, the AI web platform that builds and publishes websites and apps through your AI assistant, you ask your assistant to add it and the change is live immediately.

TL;DR

  • The Insight Tag is a snippet unique to your LinkedIn ad account. It powers conversion tracking, website retargeting and visitor demographics.
  • Paste it in the global footer, right above the closing </body> tag, so it loads on every page.
  • Verify it in Campaign Manager. Domains usually appear within minutes after the page is visited, and the status can take up to 24 hours to show Active.
  • Consent matters. In the EU and UK the tag should wait for opt-in. In California it should respect Global Privacy Control and opt-outs.
  • On WebsitePublisher, your AI assistant adds the snippet through the connector and the change is live at once.

Table of Contents

What the Insight Tag actually does

LinkedIn’s documentation describes the tag as a JavaScript snippet unique to your advertiser account. You deploy it in a common header or footer. After that, it supports three jobs.

  1. Conversion tracking. You define what counts as a conversion, such as a form submission, a signup or a purchase. LinkedIn reports it against your campaigns. Reporting covers post-click and view-through conversions, with view-through windows of 1, 7 or 30 days.
  2. Website retargeting. Installing the tag site-wide lets LinkedIn match your visitors to its members, so you can show ads to people who already visited.
  3. Website demographics. You see aggregated professional information about the people who visit, such as job function and industry.

The tag is official code from LinkedIn. HubSpot’s guide notes that it loads asynchronously and is lightweight, so it should not slow your pages down.

LinkedIn recommends one Insight Tag per website. Share that single tag across all your ad accounts instead of installing several.

Before you install: what you need

Gather three things first.

  • A LinkedIn Campaign Manager account with an ad account. The tag belongs to that account.
  • Your Partner ID. This is the numeric ID inside your snippet. It ties the tag to your account.
  • A site where you can edit the shared footer. That is where the tag lives, so it fires on every page.

If you are building on WebsitePublisher, you already have a full-stack setup for websites and apps. Hosting, forms, payments and data are built in, so the only thing you need to add is the snippet itself.

How to install the LinkedIn Insight Tag

Step 1: Create the tag in Campaign Manager

Sign in to Campaign Manager and select your ad account. Open the tag setup from your account’s signals or assets area. LinkedIn has moved this menu over the years. A 2026 help article describes the path as Measure, then Signals manager, then Insight Tag. You review the LinkedIn Ads Agreement and select “Agree & create”. Then you copy the numeric Partner ID.

If your screen differs, look for “Insight Tag” or “Install my Insight Tag” under your account assets. The snippet and the Partner ID are the same either way.

Per LinkedIn’s docs, the code goes in the global footer, right above the closing </body> tag. That placement lets conversions and retargeting work on any page.

Step 2: Place the snippet in the global footer

The common mistake is pasting it on one page only. Then you can only measure visitors who land on that page, and your retargeting audience stays small.

On WebsitePublisher, your AI assistant (ChatGPT, Claude, Gemini, Grok and others) builds and publishes websites and apps through the WebsitePublisher connector. That connector uses MCP, the Model Context Protocol, which is how AI assistants control the platform. Our platform supports reusable components, so you can ask your assistant:

Add the LinkedIn Insight Tag with Partner ID 1234567 to the shared footer so it appears on every page of my site.

Replace the number with your own Partner ID, or paste the full snippet from Campaign Manager. Every change on the AI web platform is live immediately, so there is no separate publish step. Open a few different pages afterward and confirm the snippet is on each one.

Step 3: Use a tag manager if you prefer

If you already manage tags in Google Tag Manager, you can deploy the Insight Tag from there. One tutorial describes using the community template for the LinkedIn Insight Tag, pasting your Partner ID and firing it on all pages. Use one method only. Running both gives you duplicate tags.

If you also track traffic with analytics, our guide to Google Analytics on AI web platforms covers install options and verification in the same spirit.

Step 4: Visit your site

The tag only reports once it receives signals. Open your live site in a normal browser window and click through a few pages.

How to verify the tag works

Verification has two layers: Campaign Manager and the browser. Check both.

In Campaign Manager

LinkedIn’s documentation says domains take 5 to 10 minutes to populate after the page is updated and visited. In the interface, check the Insight Tag or data sources page. When LinkedIn detects traffic, the status shows Active. HubSpot notes this can take from a few minutes up to 24 hours, so do not panic after ten minutes.

In your browser

Open DevTools on your live page and try these checks, drawn from BlueFrog Analytics’ troubleshooting guide:

  1. In the Console, window._linkedin_data_partner_ids should return your Partner ID.
  2. typeof window.lintrk should return function.
  3. In the Network tab, look for requests to px.ads.linkedin.com/collect and snap.licdn.com/li.lms-analytics/insight.min.js with a 200 status.

A browser extension that checks the tag will also show you whether it fires. Ad blockers can hide the tag from you, so test in a clean profile.

Set up conversions after the tag is live

The tag alone collects only page-level signals. To measure results, you create conversions in Campaign Manager. LinkedIn’s setup steps are: create the tag, deploy it, create conversions with URL matching rules or an image pixel, then add campaigns to the conversions.

The simplest conversion is a thank-you page. A visitor submits your lead form and lands on a page like /thanks. You create a conversion that triggers when the URL contains /thanks, and attach it to your campaign.

So plan your site with that in mind:

  • Give each goal its own confirmation URL: one for demo requests, one for downloads, one for purchases.
  • Keep those URLs stable. If you rename a page, the rule stops matching.
  • Build the form and its thank-you page together. Our lead capture form examples show field templates you can reuse, and our checklist for tracking landing page conversions covers the metrics to watch.

If your conversion needs a button click rather than a page load, LinkedIn also supports event-specific code. In that case the conversion fires through window.lintrk('track', { conversion_id: ... }), as BlueFrog describes. The conversion ID must be correct and the conversion must be associated with a campaign.

Retargeting: what the tag needs to work

Retargeting is the other big reason to install the tag. LinkedIn’s workflow is: deploy the Insight Tag, create an Ad Page Set and an Ad Segment, update the segment source, then apply the targeting to a campaign.

One rule matters for small sites. LinkedIn’s retargeting documentation says a segment must have a minimum audience of 300 before campaigns using it can start serving. A new portfolio or a small business site may take a while to reach that. That is one more reason to install the tag early and site-wide: it starts building the audience before you run a single campaign.

When the tag is not firing or conversions are missing

Work through this list in order.

  1. Check the domain list. The tag’s domains fill in automatically once signals arrive. If your live domain, or its www or subdomain variant, is missing, the data may not reach you. One troubleshooting guide calls this missing domain the LinkedIn-specific trap because it appears nowhere obvious. Also remember that blocking a domain can affect conversions, website audiences and demographics.
  2. Check the Partner ID. A typo sends signals nowhere.
  3. Check the conversion rule. Does the URL rule match the real URL, including the path? Does the event fire?
  4. Check for duplicates. Two Insight Tags on one site cause trouble. So does running both a browser tag and a server-side upload without deduplication.
  5. Check consent and blockers. If the visitor declined marketing cookies, the tag should stay silent, which is correct behavior.
  6. Wait. BlueFrog notes Campaign Manager can show a 24 to 48 hour reporting delay.

Know the limits of the tag, too. It runs in the browser, so ad blockers, cookie limits and in-app browsers reduce what it sees. It also cannot follow a lead after they leave your site. Teams with long B2B sales cycles often add LinkedIn’s Conversions API on top, which sends qualified outcomes from the server side.

The tag sets cookies and shares visitor data with LinkedIn, so treat consent as part of the install, not an afterthought.

EU and UK. According to Kukie.io’s GDPR guide, none of the tag’s cookies is strictly necessary. The tag must therefore wait until a visitor accepts marketing cookies. The guide lists cookies such as li_fat_id (first-party, 30 days) and other LinkedIn cookies such as bcookie (1 year). Your cookie policy should name each one by purpose and duration.

United States. Lokker’s privacy guide says that in California the tag should be blocked when a Global Privacy Control signal is detected, or when the visitor has opted out of sale and sharing. It also advises assigning the tag to an Advertising or Targeting consent category, not Analytics or Strictly Necessary.

Sensitive pages. LinkedIn’s help guidance, as the HeySummit article summarizes, prohibits installing the tag on pages that collect or contain sensitive data. Keep it off those pages.

Test it. Load your site and reject cookies. Open the Network tab and confirm no LinkedIn requests appear. Then accept and confirm they do.

Consent checks for LinkedIn tag requests

This is general information, not legal advice. For your own obligations, talk to a privacy lawyer in your jurisdiction.

Why we build this into the way sites get made

Tracking tags usually go wrong in boring ways. The snippet lands on one page. A second copy gets added later. A thank-you URL changes and the conversion rule quietly stops matching.

Those are site-structure problems, and they are easier to avoid when the site is built with them in mind. On WebsitePublisher, your AI assistant builds and publishes websites and apps through our connector. Reusable components keep a shared footer consistent across pages, so a tag added once appears everywhere.

Project memory and task history persist across sessions and assistants. If you start in ChatGPT and continue in Claude, Gemini or Grok, the assistant still knows where your Insight Tag went and what your conversion pages are called.

Because the platform is full-stack, the forms, email and data behind your conversion pages live in the same place as the pages themselves. Your assistant snaps together 100+ tested integrations instead of generating untested glue code. A lead form and the thank-you page that LinkedIn measures belong to one project, not to separate tools.

Build the site and the tracking in one place

If you do not yet have a site to put the tag on, WebsitePublisher is the AI web platform where you describe what you want and your AI assistant builds and publishes websites and apps. It is full-stack: hosting, auth, payments, forms, email, uploads and data are built in. You also get a visual browser editor for ongoing content and design control, so you can adjust copy without re-generating pages. Every change is live immediately.

Websitepublisher

Freelancers and agencies can run several client sites this way, each with its own tag and Partner ID setup. See which assistants work with the connector on our supported AI platforms page, or look at our AI website builder page to get started. Plans are listed on the pricing page.

A short checklist

  • ✓ Partner ID copied from Campaign Manager
  • ✓ One Insight Tag only, in the global footer above </body>
  • ✓ Live domain and www variant appear on the tag
  • ✓ Status shows Active
  • ✓ Each goal has its own stable thank-you URL and conversion rule
  • ✓ Consent banner blocks the tag until marketing cookies are accepted where required
  • ✓ Tag kept off pages with sensitive data

FAQ

Where exactly does the LinkedIn Insight Tag go?

Put it in the global footer, right above the closing </body> tag, so it loads on every page. LinkedIn’s documentation recommends this so conversions and retargeting work across the whole site. With a tag manager, use an all-pages trigger instead.

How long until the tag shows as working?

LinkedIn’s documentation says domains populate 5 to 10 minutes after a visited page is updated. The Active status in Campaign Manager can take up to 24 hours. Visit your live site first, since the tag reports only when it receives traffic.

Can I use one Insight Tag for several ad accounts?

Yes. LinkedIn recommends one Insight Tag per website and sharing it across your ad accounts. Agencies managing several clients should give each client site its own tag, not stack multiple tags on one site.

In the EU and UK, yes: the tag should fire only after a visitor accepts marketing cookies. In California, it should respect Global Privacy Control and opt-outs. Check your own obligations with a privacy lawyer.

Sources

Build your site the same way

Describe what you want. Your AI builds and publishes it — with the full stack behind it: data, auth, forms, payments, integrations and hosting.

See how it works →