LinkedIn Ads

LinkedIn Ads

LinkedIn Ads is LinkedIn's advertising platform for B2B marketing and professional audience targeting. Conversion tracking scripts and pixels fire on advertiser websites to measure sign-ups, downloads, and purchases driven by LinkedIn ad campaigns. Sets cookies for audience matching, retargeting list building, and cross-device attribution reporting.

Overview

LinkedIn Ads is LinkedIn's full advertising platform, encompassing sponsored content, message ads, dynamic ads, and text ads targeted at professional audiences. When its tracking scripts appear on a website, they measure conversions from LinkedIn ad campaigns — tracking whether users who clicked a LinkedIn ad completed a desired action such as a purchase, sign-up, or download.

What This Script Does

LinkedIn Ads conversion tracking scripts load from snap.licdn.com and px.ads.linkedin.com. These scripts are closely related to the LinkedIn Insight Tag but are specifically configured to fire conversion events rather than general page tracking.

When a user arrives at the website from a LinkedIn ad, the scripts:

  1. Read the LinkedIn click identifier from the URL parameter (typically li_fat_id or a campaign-specific parameter)
  2. Set first-party cookies to persist the click attribution across the user's session
  3. Fire conversion pixels when the user completes target actions (form submissions, purchases, page views of thank-you pages)
  4. Send conversion data back to LinkedIn's campaign reporting API

Cookies set include:

  • li_fat_id — first-party ad tracking cookie storing the LinkedIn click identifier; 30-day expiry
  • UserMatchHistory — cross-domain visitor ID sync cookie; 30-day expiry
  • AnalyticsSyncHistory — ID sync tracking for analytics matching; 30-day expiry
  • li_sugr — browser identifier for non-LinkedIn-member matching; 90-day expiry

The scripts contact px.ads.linkedin.com for conversion reporting, www.linkedin.com for cookie synchronization, and lnkd.demdex.net for audience matching through Adobe's data co-op (when the advertiser uses both platforms).

LinkedIn Ads scripts build retargeting audiences by segmenting website visitors based on pages viewed, actions taken, and conversion events. These audience segments are then available in LinkedIn Campaign Manager for targeting in subsequent ad campaigns.

Consent & Compliance

LinkedIn Ads is classified as marketing. Its sole purpose is advertising — measuring ad campaign effectiveness, building retargeting audiences, and attributing conversions to LinkedIn ad spend.

Under the GDPR, LinkedIn Ads conversion tracking requires explicit consent. The scripts process personal data (click identifiers, browsing behavior, conversion events) for direct marketing purposes. Legitimate interest is not a viable legal basis given the cross-site tracking and audience building involved.

Under the ePrivacy Directive, the cookies set for ad attribution and retargeting are not strictly necessary for any user-requested service. Prior consent is required under Article 5(3) before these cookies may be placed.

Under CCPA/CPRA, LinkedIn Ads tracking constitutes sharing personal information for cross-context behavioral advertising. Websites must honor opt-out requests and GPC signals. The retargeting audience building and cross-platform cookie syncing are clear instances of sharing under CPRA.

Should You Block This Without Consent?

Yes. LinkedIn Ads scripts exist solely for advertising purposes — conversion tracking, retargeting, and campaign attribution. They set cross-site tracking cookies and share data with LinkedIn's ad platform. These scripts must not execute before the user grants marketing consent.

Visit website

Consent Categories

Marketing

Also Known As

LinkedIn advertisingLinkedIn B2B marketingLinkedIn campaign managerLinkedIn sponsored content

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Tracked Domains (1)

ads.linkedin.comMarketing

Frequently Asked Questions

Does LinkedIn Ads require cookie consent?

Yes. LinkedIn Ads conversion scripts set persistent cross-site cookies for attribution and retargeting. Under GDPR, legitimate interest is not viable for cross-site advertising — explicit consent is required. Under ePrivacy, li_fat_id and UserMatchHistory cannot be placed before prior consent. CCPA requires opt-out for cross-context data sharing.

What cookies do LinkedIn Ads scripts set?

LinkedIn Ads sets li_fat_id (30-day) for click attribution, UserMatchHistory (30-day) for cross-domain ID sync, AnalyticsSyncHistory (30-day) for analytics matching, and li_sugr (90-day) for non-member browser identification. Scripts load from snap.licdn.com; pixels fire to px.ads.linkedin.com; audience ID syncing contacts lnkd.demdex.net.

How does ConsentStack manage LinkedIn Ads consent?

ConsentStack classifies LinkedIn Ads as marketing. All scripts from snap.licdn.com and px.ads.linkedin.com are blocked until marketing consent is confirmed. Conversion events, retargeting builds, and ID syncing via lnkd.demdex.net are prevented until consent is granted, at which point ConsentStack unblocks scripts and campaign attribution resumes.

Other LinkedIn Products

Related Vendors

Google Ads
Google Ads
Google Ads is Google's advertising platform for search, display, and remarketing campaigns. Conversion tracking scripts fire on advertiser landing pages to measure actions taken after ad clicks. The remarketing tag builds audience lists for retargeting users across Google's ad network.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag
Microsoft Advertising UET Tag is the Universal Event Tracking pixel for Microsoft's ad platform, formerly Bing Ads. The JavaScript tag fires on advertiser websites to track page views, conversions, and custom events for campaign optimization. Sets cookies to identify visitors across sessions and attribute conversions to Microsoft Search and Audience Network ad clicks.
LinkedIn Share Button
LinkedIn Share Button
LinkedIn Share Button is a social sharing widget that lets website visitors share content directly to their LinkedIn feed. Scripts load the share button interface from LinkedIn's platform servers and open sharing dialogs when clicked. Sets cookies that can identify logged-in LinkedIn users and track sharing activity back to LinkedIn's analytics.

Manage consent for LinkedIn Ads

ConsentStack automatically detects and manages LinkedIn Ads trackers so your site stays compliant with global privacy regulations.