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:
- Read the LinkedIn click identifier from the URL parameter (typically
li_fat_idor a campaign-specific parameter) - Set first-party cookies to persist the click attribution across the user's session
- Fire conversion pixels when the user completes target actions (form submissions, purchases, page views of thank-you pages)
- 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 expiryUserMatchHistory— cross-domain visitor ID sync cookie; 30-day expiryAnalyticsSyncHistory— ID sync tracking for analytics matching; 30-day expiryli_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.
Consent Categories
Also Known As
Industries
Tracked Domains (1)
ads.linkedin.comMarketingFrequently 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
Manage consent for LinkedIn Ads
ConsentStack automatically detects and manages LinkedIn Ads trackers so your site stays compliant with global privacy regulations.