LinkedIn Insight Tag Tracking Setup for WordPress
Quick answer: Use the free container builder wizard to select LinkedIn Insight Tag and your events, enter your tracking ID, then import the generated file into Google Tag Manager - no manual tag setup needed for any of the 21 events below.
LinkedIn Insight Tag base code, generated as Custom HTML. This platform does not have a native GTM tag type, so the container wraps its base code in a Custom HTML tag.
Build my LinkedIn Insight Tag container →
Events you can track
conversion events
- LinkedIn Insight Tag Form Submission event setup
- LinkedIn Insight Tag HubSpot Form Submission event setup
- LinkedIn Insight Tag Contact Form 7 Submission event setup
- LinkedIn Insight Tag WPForms Submission event setup
- LinkedIn Insight Tag Gravity Forms Submission event setup
- LinkedIn Insight Tag Comment Submission event setup
- LinkedIn Insight Tag Newsletter Signup event setup
- LinkedIn Insight Tag User Login event setup
- LinkedIn Insight Tag User Registration event setup
- LinkedIn Insight Tag Calendly Booking Scheduled event setup
- LinkedIn Insight Tag Live Chat Started event setup
engagement events
- LinkedIn Insight Tag Page View event setup
- LinkedIn Insight Tag Scroll Depth event setup
- LinkedIn Insight Tag Outbound Link Click event setup
- LinkedIn Insight Tag File Download event setup
- LinkedIn Insight Tag Phone Number Click event setup
- LinkedIn Insight Tag Email Link Click event setup
- LinkedIn Insight Tag WhatsApp Click event setup
- LinkedIn Insight Tag Site Search event setup
- LinkedIn Insight Tag Video Play event setup
- LinkedIn Insight Tag Video Complete event setup
By Humayun Kabir Naim — Last updated: 9 November 2026
Quick answer
To track WordPress leads in LinkedIn through Google Tag Manager, install one Insight Tag base tag on every page — GTM has a built-in LinkedIn Insight tag type that needs only your partner ID — and then define each conversion in Campaign Manager, not in GTM. Choose URL-based when a thank-you page exists (LinkedIn counts the page load; nothing else to build) or event-based when the form submits in place: Campaign Manager gives you a conversion ID, and a small GTM tag fires lintrk('track', { conversion_id: … }) on the moment the submission is proven — the form plugin's success event or success message, never the submit click. If you already track forms for GA4 or Meta on this site, those success signals already exist in your container; LinkedIn simply listens to the same ones. Install the tag exactly once: a plugin and GTM injecting it together double every conversion, and LinkedIn offers no deduplication merge to rescue a double install.
What gets tracked
A B2B WordPress site sells conversations, not carts. Its conversions are enquiries, demo bookings and downloads — and on LinkedIn each one is a conversion you define in Campaign Manager, fed by a signal from the site:
| WordPress action | How it's captured | LinkedIn use |
|---|---|---|
| Any page view | Base Insight Tag on All Pages | Website audiences + visitor demographics |
| Contact or quote form submitted | Success signal → dataLayer form_submission | Event-based conversion (lead) |
| Contact Form 7 submission | Bridge tag on wpcf7mailsent → cf7_form_submission | Event-based conversion (lead) |
| WPForms submission | Bridge tag on the plugin's success event | Event-based conversion (lead) |
| Gravity Forms submission | Bridge tag on the plugin's success event | Event-based conversion (lead) |
| HubSpot form submission | Bridge tag on the form's success event | Event-based conversion (lead) |
| Calendly booking completed | postMessage bridge → calendly_booking | Event-based conversion (demo booked) |
| User registration completed | dataLayer push on registration success | Event-based conversion (sign-up) |
| Newsletter signup | Form success signal | Event-based conversion or audience only |
| Lead-magnet file download | Click trigger or dataLayer push | Event-based conversion or audience only |
| Phone, WhatsApp or email click | GTM Click triggers | Audience signal — intent, not a lead |
Two habits keep this honest. Conversions live in Campaign Manager: the right-hand column is a definition you create there — name, type, value, attribution window — and GTM's only job is delivering the signal at the right moment. Clicks are not conversions: a phone or WhatsApp click is intent worth retargeting, but counting it as a lead teaches LinkedIn's bidding to find clickers. The full generated set covers 21 events; the form plugins (CF7, WPForms, Gravity Forms, HubSpot) are detected automatically by bridge tags in the container, so those rows need no dataLayer code from you.
Deep dives: Form Submission, Contact Form 7 Submission, Calendly Booking. Already running Meta on this site? The same form signals feed it: WordPress + Meta. See all options on the WordPress hub.
Before you start
- GTM installed on the site — once. One web container, via GTM4WP or your theme setup. Check the theme and header/footer plugins for a second container or a hardcoded Insight Tag; both problems double everything downstream.
- Your LinkedIn partner ID. In Campaign Manager open Signals manager → Insight Tag and choose the tag-manager install option; LinkedIn shows your numeric partner ID (for example
1234567). That ID is all the GTM base tag needs. - One install only — decide before you build. WordPress offers several ways to add this tag: GTM, LinkedIn plugins, and all-in-one marketing plugins with a LinkedIn field. Pick GTM and disable the tag everywhere else. LinkedIn gives you no shared
event_idcontract to merge copies with — a double install is a double count, full stop. - Forms with a provable success moment. Each form needs a thank-you redirect, a visible success message, or the plugin's own success event (CF7, WPForms and Gravity Forms all fire one). If your GA4 or Meta form tracking already works, these signals are already in your container and this step is done.
- Consent placement. The Insight Tag sets advertising cookies, so on EEA/UK sites it belongs in your consent setup's marketing category — fire the base tag on the consent trigger your CMP uses, as with your other ad pixels.
Route 1: Use the free TagManagerBuilder container
Open the GTM Container Builder, choose WordPress, then LinkedIn Insight Tag, and tick the events you want. Enter your partner ID, download the JSON, then in GTM go to Admin → Import Container and choose Merge → Overwrite conflicting tags, triggers, and variables. The container includes the bridge tags for CF7, WPForms, Gravity Forms and HubSpot forms, so those submissions are detected without extra code. You still define the conversions in Campaign Manager (Step 2 below) — the container delivers signals, the definitions live in LinkedIn. Test with the testing section before publishing.
Route 2: Build it manually in GTM
Step 1 — The base Insight Tag
Tags → New, choose the built-in LinkedIn Insight tag type, enter your partner ID, and set the trigger to All Pages (or your consent trigger). This loads the tag on every page, reports the visit to LinkedIn, and starts your website audiences and visitor demographics. One base tag is the whole foundation: every conversion below assumes exactly one underneath it.
Step 2 — Define the conversion in Campaign Manager first
LinkedIn conversions are created in the ad account, before any GTM event tag exists. In Campaign Manager, open Signals manager → Conversions → Create conversion, pick the Insight Tag as the source, and set the name, conversion type (lead, sign-up and similar categories), value if you use one, and attribution window. The last choice shapes your GTM work:
- URL-based: LinkedIn counts the conversion when the Insight Tag loads on a page whose URL matches your rule (contains/equals). Right for forms that redirect to a thank-you page. Nothing to build in GTM beyond the base tag.
- Event-based: LinkedIn counts it when it receives an event call carrying this conversion's ID. Campaign Manager shows you that conversion ID — the join between the definition and your GTM tag, and what Step 3 is built around.
Create one conversion per real outcome (contact form, demo booking, download), not one per form plugin — two forms that both mean "sales enquiry" can share a definition while keeping separate triggers.
Step 3 — The event tag, fired on success only
For each event-based conversion, create a Custom HTML tag in GTM containing LinkedIn's event call with that conversion's ID:
<script>
window.lintrk('track', { conversion_id: 1234567 });
</script>
(The ID here is a dummy — use the conversion ID Campaign Manager gave you; it is a different number from your partner ID.) Then attach the trigger that proves the action happened, using the first signal your form offers:
- The plugin's success event (cleanest). The container's bridge tags already turn CF7, WPForms, Gravity Forms and HubSpot submissions into dataLayer events (
cf7_form_submissionand its siblings). Attach the event tag with a Custom Event trigger on the matching push. If you built the WordPress × GA4 form setup, a genericgenerate_leadpush exists too — listening for it works exactly the same way. - Success message. An Element Visibility trigger on the form's success message, firing once per page.
- Thank-you page. Only if the conversion is URL-based you don't need this tag at all — but if the redirect exists and you chose event-based, a Page View trigger on the thank-you path is the simplest reliable signal.
Never attach this tag to the submit button click or GTM's generic Form Submission trigger: both fire before validation, so failed submissions count as leads and LinkedIn optimises toward people whose enquiries never arrived.
Step 4 — Matched audiences, the quiet win
Conversions get the attention, but for many B2B sites the Insight Tag's bigger prize is website audiences: in Campaign Manager you build matched audiences from page visits (all visitors, or URL rules for pricing/demo/service pages) and retarget those exact professionals — with the job-title, seniority and industry layering only LinkedIn can add. Audiences need a minimum of 300 matched members before they can be used in a campaign, so install the base tag early even if your conversion definitions come later; the audience builds while you decide. Page-level audiences also give you demographic reporting (functions, seniority, company size) that shows whether your content reaches buyers at all.
Test it: GTM Preview, Tag Helper and Campaign Manager
- Click Preview in GTM and open your site in Tag Assistant. Submit each form once with test details — including one deliberately invalid submission, which must produce no LinkedIn event tag.
- In the Preview timeline, confirm the event tag fires on the success signal (
cf7_form_submission, the visibility event, or the thank-you page view) and only there, and that the base tag fired once per page. - Check what actually left the browser: LinkedIn's Tag Helper extension shows the Insight Tag and its events on the page; without it, the Network tab filtered on
linkedinshould showinsight.min.jsloading and requests topx.ads.linkedin.com. - In Campaign Manager's Signals manager, confirm the tag status turns active and your domain validates — LinkedIn can take from a few minutes up to a day to show this, so a missing status minutes after install is not yet a failure.
- Trigger one real conversion action and watch the conversion's status in Signals manager move from unverified toward receiving data.
- Only then click Submit in GTM to publish — and re-check the page for a second tag install (view source for
snap.licdn.comoutside GTM) before you call it done.
A note on deduplication — LinkedIn is not Meta
Readers arriving from Meta setup usually ask where LinkedIn's event_id goes. The honest answer: there isn't one you control. Meta merges a browser event and a server event when both carry the same event_name and identical event_id within 48 hours — a contract you can engineer. LinkedIn's documented model is simpler and blunter: one Insight Tag, conversions defined in Campaign Manager, and no published browser/server merge keyed on an ID you set in GTM. LinkedIn does offer a Conversions API for server-side sending, but it is a separate integration aimed at larger and CRM-driven setups — do not assume pixel and server copies cancel each other out the way Meta's do; if you ever run both, check LinkedIn's current deduplication guidance first and treat the channels as additive until proven otherwise. The practical consequence: the double install is the whole deduplication problem. A plugin and GTM injecting the same tag double every pageview and conversion, nothing downstream merges them, and the fix is subtraction — one install — not configuration.
WordPress-specific troubleshooting
Conversions are roughly double my real enquiries. Two installs: a LinkedIn or all-in-one plugin is injecting the tag alongside GTM (or the base code is pasted in the theme too). Search the page source for snap.licdn.com — it should appear only through GTM. Remove the other install; the numbers correct themselves from that day.
The conversion stays "unverified" in Campaign Manager. A conversion verifies only when real tag traffic matches its rule. Check the base tag fires (Tag Helper or Network tab), then perform the action yourself: load the thank-you URL for a URL-based rule, or complete a genuine submission for an event-based one. Also confirm the conversion belongs to the same ad account whose partner ID you installed.
Event tag fires in Preview, but Campaign Manager shows nothing. Read the conversion ID digit by digit — the event call needs the conversion ID from that conversion's definition, and the classic mistake is pasting the partner ID instead. The two numbers look alike and LinkedIn accepts the call silently either way; only one counts.
CF7 leads never arrive. Contact Form 7 submits by AJAX and shows a success message instead of loading a new page, so URL-based conversions and thank-you triggers can never see it. Use the bridge tag on wpcf7mailsent (already in the generated container) or an Element Visibility trigger on the success message, as in Step 3.
The tag fires, but the audience never becomes usable. Website audiences need at least 300 matched members before a campaign can target them. Low-traffic B2B sites can take weeks; check the audience is collecting (Signals manager shows its size growing) rather than rebuilding the tag.
Demographics and audiences are empty even though the tag fires. The Insight Tag only matches visitors LinkedIn can identify as signed-in members. Anonymous traffic is invisible to it by design — a niche B2B site will always show a matched subset, not its full analytics traffic. Compare against GA4 totals with that gap in mind.
Next steps once this is clean: WordPress + Meta and WordPress + Microsoft UET run from the same form signals, and Consent Mode v2 keeps every tag's consent behaviour consistent.
Frequently asked questions
Does LinkedIn deduplicate conversions like Meta's event_id does?
No — not in any way you can engineer from GTM. Meta merges browser and server copies that share an event name and an identical event_id within 48 hours; LinkedIn publishes no equivalent merge key for Insight Tag setups. One tag, installed once, is the entire deduplication strategy here: a plugin and GTM injecting the tag together will double every conversion and nothing will merge them afterwards.
Should I use a URL-based or an event-based conversion?
URL-based when the action ends on a page of its own — a thank-you or confirmation page — because it needs no GTM event tag at all, just the base tag and a URL rule in Campaign Manager. Event-based when the form submits in place (most modern WordPress forms do): Campaign Manager gives you a conversion ID, and GTM fires lintrk('track', { conversion_id }) on the submission's success signal. If both exist for one form, pick event-based — it survives URL changes and redesigns.
I installed a LinkedIn plugin before GTM. Do I have to remove it?
Yes, if it injects the Insight Tag. Two installs of the same tag double every pageview and conversion, and LinkedIn cannot merge the copies. Keep the install inside GTM, disable the tag in the plugin (or remove the plugin if the tag was its only job), and verify in the page source that snap.licdn.com loads only through GTM.
Why does my conversion stay "unverified" in Campaign Manager?
Because no qualifying traffic has matched it yet. A conversion verifies when the Insight Tag fires under its rule: a real visit to the thank-you URL for URL-based conversions, or a genuine event call with the right conversion ID for event-based ones. Install the tag, perform the action yourself, and allow LinkedIn some time to process it before rebuilding anything.
What are matched audiences, and why do they matter more than conversions for some sites?
Matched (website) audiences are retargeting lists built from your Insight Tag traffic — all visitors, or people who viewed specific pages like pricing or a demo page — which you can then target with LinkedIn's job-title, seniority and industry filters. For a low-volume B2B site, a few hundred well-qualified visitors are often more valuable than the raw conversion count, because they are the exact professionals your sales team wants repeated exposure to. Audiences become usable once they reach 300 matched members.
Do I also need LinkedIn's Conversions API?
For most WordPress sites, no. The Conversions API is a server-to-server integration aimed at larger advertisers and CRM-driven offline conversion imports; the Insight Tag covers website lead tracking completely on its own. If you later adopt it, do not assume it deduplicates against the tag the way Meta's CAPI does — check LinkedIn's current guidance for the combined setup before sending the same conversions down both channels.