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.

Overview

LinkedIn Share Button is a social sharing widget that allows website visitors to share content directly to their LinkedIn feed. It appears as a branded button on articles, blog posts, and other shareable content. While its primary function is social sharing, the widget loads LinkedIn's platform scripts, which can set tracking cookies and identify logged-in LinkedIn members browsing the site.

What This Script Does

The LinkedIn Share Button loads scripts from platform.linkedin.com, typically via the LinkedIn JavaScript SDK. The script renders a share button (and optionally a share count) and, when clicked, opens a LinkedIn sharing dialog where the user can compose a post with the page's URL, title, and description.

Even before the user clicks the button, the script makes network requests to LinkedIn's servers that can set cookies in the user's browser:

  • bcookie — LinkedIn browser identifier cookie; 1-year expiry
  • lidc — data center routing and session cookie; 24-hour expiry
  • UserMatchHistory — visitor ID sync cookie used for ad targeting; 30-day expiry
  • li_sugr — browser identifier for matching non-LinkedIn members; 90-day expiry

These cookies allow LinkedIn to identify logged-in members visiting the host website, even if they never interact with the share button. This information feeds into LinkedIn's advertising platform for audience insights and ad targeting.

When the user clicks the share button, additional data is transmitted: the page URL, page title, any Open Graph metadata, and the user's LinkedIn identity (if logged in). The sharing dialog loads from www.linkedin.com.

The dual nature of this widget is important for consent classification: the share button provides a functional feature (sharing content) but simultaneously enables LinkedIn's advertising data collection (identifying members across websites).

Consent & Compliance

LinkedIn Share Button is classified as functional and marketing. The sharing functionality is a legitimate feature, but the cookies set on page load serve LinkedIn's advertising platform and constitute marketing tracking.

Under the GDPR, the marketing cookies set by the share button (particularly UserMatchHistory and li_sugr) require explicit consent. These cookies are used for advertising audience building, not for the share functionality itself. The functional aspect of the button (opening a share dialog) could operate without these tracking cookies.

Under the ePrivacy Directive, the tracking cookies set before any user interaction with the button are not strictly necessary for any user-requested service. Article 5(3) requires consent before placing these cookies. A privacy-respecting implementation would defer loading the LinkedIn SDK until the user explicitly interacts with a placeholder share button.

Under CCPA/CPRA, the LinkedIn member identification and cookie syncing that occurs through the share widget constitutes sharing of personal information for cross-context behavioral advertising. Opt-out and GPC signal compliance is required.

Should You Block This Without Consent?

Conditional. The LinkedIn Share Button mixes functional and marketing behaviors. The marketing cookies set on page load require consent. A recommended approach is to show a static placeholder button that loads the actual LinkedIn SDK only after marketing consent is granted, or to implement sharing via a simple URL redirect (https://www.linkedin.com/sharing/share-offsite/?url=...) that avoids loading LinkedIn's tracking scripts entirely.

Visit website

Consent Categories

Functional
Marketing

Also Known As

LinkedIn social shareLinkedIn sharing widgetLinkedIn share pluginLinkedIn social button

Industries

Computers Electronics and TechnologyProgramming and Developer Software

Frequently Asked Questions

Does the LinkedIn Share Button require cookie consent?

Conditionally. The LinkedIn SDK sets advertising cookies including UserMatchHistory and li_sugr on page load before any interaction, which require marketing consent under GDPR and ePrivacy. A URL-based share redirect avoids loading the tracking SDK entirely and is the recommended privacy-compliant alternative.

What cookies does the LinkedIn Share Button set?

On page load, the LinkedIn JS SDK from platform.linkedin.com sets bcookie (1-year) as a browser identifier, lidc (24-hour) for routing, UserMatchHistory (30-day) for ad targeting, and li_sugr (90-day) for non-member matching. These fire before interaction, enabling LinkedIn to identify logged-in members browsing the host site.

How does ConsentStack categorize the LinkedIn Share Button?

ConsentStack classifies the LinkedIn Share Button as functional and marketing. ConsentStack blocks the platform.linkedin.com SDK until marketing consent is granted. ConsentStack also supports replacing the SDK button with a static URL share link that performs no tracking and requires no consent gating.

Other LinkedIn Products

Related Vendors

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
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 Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for LinkedIn Share Button

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