LinkedIn Insight Tag Integration for B2B Marketing

The LinkedIn Insight Tag is a powerful conversion tracking and audience building tool specifically designed for B2B marketing on LinkedIn’s professional network. With over 900 million professionals worldwide, LinkedIn offers unparalleled targeting capabilities for business-to-business advertising, and the Insight Tag enables precise tracking of how LinkedIn campaigns drive website activity, conversions, and lead generation. When integrated with DigiConsent, you can leverage LinkedIn’s B2B advertising power while maintaining complete privacy compliance.

This guide provides complete instructions for implementing LinkedIn Insight Tag with DigiConsent, from creating your tag in LinkedIn Campaign Manager to configuring conversion tracking and building retargeting audiences. Whether you’re running lead generation campaigns, promoting B2B services, or recruiting talent through LinkedIn ads, you’ll learn how to track performance accurately while respecting user privacy choices and complying with GDPR, CPRA, and other privacy regulations.

Understanding LinkedIn Insight Tag and Privacy Compliance

The LinkedIn Insight Tag is a lightweight JavaScript code that tracks member activity on your website after they interact with your LinkedIn ads or visit from LinkedIn. The tag monitors page views, form submissions, downloads, and custom conversions, sending this data back to LinkedIn where it powers conversion tracking, website demographics reports, and retargeting audiences.

What makes LinkedIn unique among advertising platforms is its professional focus and rich member data. LinkedIn knows users’ job titles, industries, company sizes, and professional interests—data that’s invaluable for B2B targeting. The Insight Tag connects your website activity to this professional context, enabling sophisticated targeting like “marketing managers at tech companies who visited our pricing page.”

From a privacy perspective, LinkedIn Insight Tag is categorized as a marketing or advertising cookie because it tracks users for advertising and retargeting purposes. Under GDPR, this requires explicit opt-in consent before the tag can load. LinkedIn’s terms also require compliance with applicable privacy laws. DigiConsent manages this by blocking the Insight Tag until users accept marketing cookies, ensuring your LinkedIn tracking remains compliant across all jurisdictions.

Creating Your LinkedIn Insight Tag

Before configuring DigiConsent, you need a LinkedIn Insight Tag from your LinkedIn Campaign Manager account. If you haven’t created one yet, follow these steps:

  1. Log into LinkedIn Campaign Manager at business.linkedin.com/campaign-manager
  2. Select your advertising account (or create one if this is your first time)
  3. Click the Account Assets dropdown in the top navigation
  4. Select Insight Tag from the menu
  5. If you already have a tag, it displays here; otherwise, click Install Insight Tag
  6. Review the terms and conditions
  7. Click I Accept to create your tag

After accepting terms, LinkedIn generates your Insight Tag code. The code includes a unique Partner ID that looks like a number (e.g., 1234567). This Partner ID identifies your LinkedIn advertising account and connects website tracking data to your campaigns. You’ll see the complete tag code on screen—keep this page open as you’ll copy this code for DigiConsent configuration.

LinkedIn also offers a tag verification helper that confirms proper installation. You’ll use this later for testing, but for now, just note that it exists in the Insight Tag section of Campaign Manager.

Installing LinkedIn Insight Tag Through DigiConsent

With your Insight Tag code ready, navigate to DigiConsent → Settings → Cookie Categories in your WordPress admin. Select the Marketing Cookies tab—LinkedIn Insight Tag is a marketing tracker that requires marketing cookie consent.

In the Marketing Cookies script field, add your LinkedIn Insight Tag code. The code should look similar to this:

<!-- LinkedIn Insight Tag -->
<script type="text/javascript">
_linkedin_partner_id = "1234567";
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);
</script><script type="text/javascript">
(function(l) {
if (!l){window.lintrk = function(a,b){window.lintrk.q.push([a,b])};
window.lintrk.q=[]}
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);})(window.lintrk);
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=1234567&fmt=gif" />
</noscript>
<!-- End LinkedIn Insight Tag -->

Replace 1234567 with your actual Partner ID in both the JavaScript section and the noscript image URL. The code includes three parts: the JavaScript that initializes your Partner ID, the script that loads LinkedIn’s tracking library, and a noscript fallback image for browsers with JavaScript disabled.

When you paste this code into DigiConsent’s Marketing Cookies section and save settings, the plugin automatically blocks it from executing until users accept marketing cookies. The tag won’t load, won’t set cookies, and won’t send data to LinkedIn until explicit consent is provided.

Configuring LinkedIn Conversion Tracking

The base Insight Tag tracks page views automatically, but LinkedIn’s real value for B2B marketing comes from conversion tracking. Conversions represent valuable actions users take on your website: form submissions, content downloads, demo requests, trial sign-ups, or purchases.

Unlike some platforms, LinkedIn requires you to define conversions in Campaign Manager before tracking them. Here’s how to set up conversion tracking:

Creating a Conversion in Campaign Manager

  1. In LinkedIn Campaign Manager, go to Account Assets → Conversions
  2. Click Create Conversion
  3. Enter a conversion name (e.g., “Contact Form Submission”, “Demo Request”, “Whitepaper Download”)
  4. Select a conversion type from the dropdown (options include: Lead, Purchase, Sign Up, Download, and more)
  5. Choose the attribution model (how LinkedIn credits conversions to ads)
  6. Set the post-click conversion window (typically 30 days for B2B)
  7. Set the view-through conversion window (typically 7 days)
  8. Optionally assign a value to the conversion (useful for ROI tracking)
  9. Click Create

After creating the conversion, LinkedIn displays tracking code specific to that conversion. This code includes an event-specific ID that you’ll add to your website.

Implementing Conversion Tracking Code

For each conversion, LinkedIn provides a tracking code snippet. Add this to the page where the conversion occurs (typically a thank you or confirmation page). For a lead form submission, the code looks like:

<script type="text/javascript">
window.lintrk('track', { conversion_id: 1234567 });
</script>

The conversion_id is unique to each conversion you create. Add this code to the appropriate page:

  • Form submissions: Thank you page after form completion
  • Downloads: Download confirmation page or immediately after download triggers
  • Demo requests: Demo request confirmation page
  • Purchases: Order confirmation page with transaction details
  • Trial sign-ups: Account created or welcome page

Unlike the base Insight Tag which goes in DigiConsent’s Marketing Cookies section, conversion tracking codes are page-specific and should be added directly to your theme templates, page builder elements, or form confirmation pages. They rely on the base tag being loaded (which DigiConsent controls), so they automatically respect consent—if the base tag is blocked, conversion tracking codes have no effect.

Adding Conversion Values

For conversions with varying values (like purchases or different service tiers), pass dynamic values:

<script type="text/javascript">
window.lintrk('track', { 
  conversion_id: 1234567,
  value: 999.99,
  currency_code: 'USD'
});
</script>

Replace the static value with dynamic data from your e-commerce platform or form system. This enables accurate ROI tracking and helps LinkedIn optimize campaigns for high-value conversions.

Testing LinkedIn Insight Tag Integration

Proper testing ensures the tag loads only with consent and tracks conversions correctly. LinkedIn provides testing tools directly in Campaign Manager.

Using LinkedIn’s Tag Verification

  1. In Campaign Manager, go to Account Assets → Insight Tag
  2. Look for the “Tag status” section showing whether your tag is detected
  3. Clear your browser cookies or use an incognito window
  4. Visit your website and reject marketing cookies in the DigiConsent banner
  5. Return to Campaign Manager and check tag status—it should show “Not detected” or last detected time should be old
  6. Clear cookies again and return to your site
  7. Accept marketing cookies this time
  8. Browse several pages on your site
  9. Return to Campaign Manager and refresh after 2-3 minutes
  10. Tag status should now show “Active” with a recent detection time

LinkedIn’s tag verification typically updates within 5 minutes. If the tag shows as active before you accept marketing cookies, you have a configuration problem—likely duplicate tag code outside DigiConsent’s control.

Testing Conversion Tracking

To verify conversion tracking works correctly:

  1. Accept marketing cookies on your website
  2. Navigate to a page with a conversion action (form, download, etc.)
  3. Complete the conversion action
  4. Ensure you reach the page where conversion tracking code is installed
  5. Open browser developer console (F12)
  6. Look for network requests to px.ads.linkedin.com
  7. If you see these requests, conversion tracking is firing
  8. Go to Campaign Manager → Conversions
  9. Select your conversion and view the details
  10. Check for test conversions appearing (can take 5-10 minutes)

LinkedIn doesn’t offer a real-time conversion testing tool like Facebook or TikTok, so you’ll need to wait for conversions to appear in reporting. Test conversions count toward your conversion totals, so be aware that test data will appear in your reports.

Browser Console Verification

Use browser developer tools to verify tag loading behavior:

  1. Open browser console (F12)
  2. Go to the Network tab
  3. Visit your site with cookies rejected
  4. Filter for “linkedin” or “snap.licdn.com”
  5. Verify no LinkedIn requests appear
  6. Clear cookies and accept marketing cookies
  7. Refresh the page
  8. LinkedIn tracking requests should now appear in the Network tab

If requests appear before consent, check for duplicate tag installations in your theme files, other plugins, or Google Tag Manager.

Building LinkedIn Matched Audiences

One of the Insight Tag’s most powerful features is website retargeting through Matched Audiences. You can create audiences based on website behavior and target them with LinkedIn ads:

  1. In Campaign Manager, go to Account Assets → Matched Audiences
  2. Click Create Audience
  3. Select Website as the audience source
  4. Choose your audience type:
    • Visited specific pages: Target users who viewed particular URLs
    • Visited any page: All website visitors
    • Website actions: Users who completed specific conversions
  5. Define your audience rules (URL patterns, conversion events, etc.)
  6. Set the lookback window (how many days of history to include, typically 30-180 days)
  7. Name your audience descriptively
  8. Click Create Audience

Example B2B audience strategies:

  • Pricing Page Visitors: High-intent prospects who viewed pricing but didn’t convert
  • Blog Readers: People who read 3+ blog posts—warm audience for nurture campaigns
  • Demo Requesters: Users who completed demo request conversion—great for follow-up
  • Case Study Viewers: Prospects researching your solutions through case studies
  • Product Feature Pages: Users interested in specific product capabilities

LinkedIn requires a minimum audience size of 300 members before audiences can be used in campaigns. Website audiences typically build slowly for B2B businesses, so allow time for audience growth.

Leveraging Website Demographics

A unique feature of LinkedIn Insight Tag is Website Demographics reporting, which shows professional characteristics of your website visitors even if they don’t convert. Access this data in Campaign Manager:

  1. Go to Account Assets → Insight Tag
  2. Click the Demographics tab
  3. View aggregated data about your website visitors including:
    • Job functions (Marketing, IT, Sales, Finance, etc.)
    • Seniority levels (Entry, Manager, Director, VP, C-level)
    • Industries
    • Company sizes
    • Geographic locations

This data is invaluable for B2B marketing strategy. If you discover that most website visitors are mid-level managers but you’re targeting C-suite executives, adjust your content or advertising strategy. If certain industries over-index on your site, consider industry-specific campaigns.

Privacy note: Website Demographics shows only aggregated data, not individual visitor information. LinkedIn requires minimum thresholds (typically 300+ visitors in a segment) before displaying demographic breakdowns, protecting individual privacy.

Common LinkedIn Insight Tag Issues

Tag Active Before Consent

If LinkedIn’s tag verification shows the tag as active before users accept marketing cookies, you have duplicate tag code somewhere. Common locations:

  • Theme customizations: Check theme settings, header/footer injection areas
  • WordPress plugins: Marketing or analytics plugins may include LinkedIn tag fields
  • Google Tag Manager: If using GTM, verify no LinkedIn tags exist there
  • Page builder elements: Elementor, Divi, etc., might have LinkedIn tag widgets

View page source and search for _linkedin_partner_id or snap.licdn.com. Multiple instances indicate duplicate installations.

Conversions Not Tracking

If the base tag works but conversions don’t track:

  • Verify conversion tracking code is on the correct page (must be on confirmation/thank you page, not the form page itself)
  • Check that the conversion_id in your code matches the ID in Campaign Manager
  • Ensure users actually reach the page with conversion code (test the full user flow)
  • Look for JavaScript errors in browser console that might prevent code execution
  • Confirm the base Insight Tag loads before conversion code fires

Small Audience Sizes

LinkedIn audiences require 300+ members to be usable. If your audiences remain too small:

  • Increase lookback windows (use 90 or 180 days instead of 30)
  • Broaden URL matching rules (use wildcard patterns to include more pages)
  • Combine multiple small audiences into larger segments
  • Be patient—B2B websites typically have lower traffic than B2C, so audiences grow slowly

Privacy Compliance and Best Practices

Privacy Policy Requirements

Your privacy policy must disclose LinkedIn Insight Tag usage. Include:

  • That you use LinkedIn Insight Tag for advertising and conversion tracking
  • What data is collected (page views, conversions, professional demographics)
  • That data is shared with LinkedIn Corporation
  • How users can opt out (by rejecting marketing cookies in your consent banner)
  • Link to LinkedIn’s privacy policy for more information

GDPR Compliance

For European visitors, ensure:

  • The tag only loads after explicit opt-in consent (DigiConsent handles this automatically)
  • Your consent banner clearly mentions LinkedIn tracking in the marketing cookies description
  • Users can withdraw consent at any time (DigiConsent provides this through the manage preferences button)
  • Your privacy policy details data processing and user rights

With DigiConsent Pro’s geolocation features, you can show stricter opt-in consent for EU visitors while using different approaches for other regions, all automatically based on visitor location.

Optimizing LinkedIn Campaigns with Insight Tag Data

Once your Insight Tag collects data, use it to improve LinkedIn advertising performance:

  • Conversion optimization: Set campaigns to optimize for specific conversions (demo requests, downloads) rather than clicks or impressions
  • Value-based bidding: Use conversion values to optimize for high-value actions, not just volume
  • Retargeting campaigns: Create campaigns targeting website visitors who didn’t convert, with messaging addressing their likely objections
  • Sequential messaging: Show different ad creative to audiences based on which pages they visited or actions they took
  • Lookalike audiences: Once conversion audiences reach 300+ members, create lookalike audiences to reach similar professionals
  • Demographic insights: Use Website Demographics to refine targeting criteria in campaigns
  • Exclusion audiences: Exclude recent converters from acquisition campaigns to prevent wasted ad spend

Integration with LinkedIn Lead Gen Forms

LinkedIn Lead Gen Forms are native forms within LinkedIn that capture leads without users leaving the platform. While these forms don’t require Insight Tag to function, combining them with Insight Tag provides powerful data:

  • Track which Lead Gen Form submitters visit your website afterward
  • Measure whether leads from LinkedIn engage with your content
  • Create audiences of leads who visited specific pages post-submission for targeted follow-up
  • Identify which leads are most engaged for sales prioritization

The Insight Tag automatically tracks LinkedIn members who submit Lead Gen Forms and subsequently visit your website, creating a complete view of the buyer journey from ad click through form submission to website engagement.

LinkedIn Insight Tag integrated with DigiConsent provides compliant, powerful tracking for B2B marketing on the world’s largest professional network. By properly configuring the tag to respect user consent, implementing conversion tracking for key business actions, and building strategic retargeting audiences, you’ll maximize LinkedIn advertising ROI while maintaining full privacy compliance for your professional audience.