How to install LinkedIn's GDPR-compliant Pixel

Attention: Pro Features
This type of Cookie is supported only in the Pro and Reseller versions of My Agile Privacy. Purchase your license and gain access to the entire database of pre-inserted cookies, constantly updated by the experts at My Agile Privacy.
>> Click here and find the plan that suits you best.

The LinkedIn Pixel allows you to track user behavior such as page views and conversions on your website, transmitting this data to LinkedIn. With the data collected, you can create custom audiences, run remarketing campaigns, and refine your campaign targeting.
Because these activities fall under regulations like GDPR and the cookie law, you must obtain explicit user consent.

In this article, you'll learn how to ensure GDPR compliance for the LinkedIn Pixel using the My Agile Privacy WordPress plugin. Here’s how to proceed:

Solution 1 – Automatic Scan

You can use the advanced "Cookie Shield" feature to automatically detect the LinkedIn Pixel.
Set the Shield to "Learning" mode and browse the pages of your site—your privacy-compliant configuration will be ready automatically.
Manual configuration is also available if you prefer.

Solution 2 – Manual Configuration

Part 1 – Get Your LinkedIn Pixel Code

First, locate the LinkedIn Pixel code you want to install on your website.
It will look similar to this:
linkedin pixel code

Part 2 – Add the LinkedIn Pixel Cookie in My Agile Privacy

In your WordPress admin panel, go to My Agile Privacy → Cookie List from the left menu.
Here you'll see a list of cookies imported during plugin installation. By default, all cookies are in draft status—publish only those relevant to your website.
cookie list
The Cookie List displays columns for:

  • Cookie Name: The name of the cookie
  • Is Necessary: Indicates whether the cookie is essential for navigation. If disabling the cookie breaks your site, it's marked as essential. This is pre-filled in the details.
  • Auto Update: Shows if the cookie reference text is auto-updated for GDPR compliance. If set to "yes," the plugin updates the texts automatically.
  • Tails: Shows a preview of the code associated with each cookie—helpful for integrations like LinkedIn Pixel.

To add the LinkedIn Pixel, look for "LinkedIn Ads" in the list and click on it.
The detail page shows pre-filled informational text and two empty fields where the code can be inserted.
This text will appear in your cookie policy and, if "Allow Automatic Update" is enabled, will stay up to date automatically.
Below, choose the "Type of Installation" (Javascript and Noscript, or Raw). Keep "Javascript-noscript code" selected; you'll then see two input fields:

  • Javascript Activation Code – paste the main LinkedIn Pixel code here
  • NoScript code – enter the NoScript code if required

code entry in the cookie options

Part 3 – Enter the LinkedIn Pixel Code

Copy the LinkedIn Pixel code you previously obtained and paste it into the appropriate fields (as shown above).
Important: Do not include the <script> and </script> tags or the <noscript> and </noscript> tags when entering the code.
Remember to save and publish the cookie by pressing the blue "Publish" button in the upper right corner.

Final Step – Verifying Operation

To confirm proper installation, you can use tools provided by LinkedIn or Google to check the Pixel, or contact support if you need help.
When browsing any page on your website, you'll see that the LinkedIn Pixel remains inactive until the user explicitly consents to cookie installation.
Consent can be granted by clicking "I agree" on the cookie acceptance bar or by enabling the LinkedIn cookie in the "Customize" section.

Download the free guide

Fill out the form and get immediate access to the guide in PDF format.
Mockup del pdf della guida
Loading in Progress...
Request successfully sent. You will be redirected to the download page shortly
By submitting this form I declare that I have read the privacy policy and authorize the Owner to respond to me for what is expressed in point a of the privacy policy
Warning: Your Cookie choices may not allow the form to be submitted.
Click here to review your preferences.
buy now My Agile Privacy - compliant in less than 3 minutes
a Formula Agile SRL project
COE / TAX ID 31366
Via Tre Settembre, 99 - 47891 Dogana - San Marino - RSM
Share capital 26'000€
For assistance: info[at]myagileprivacy.com
GDPR and privacy present complexities that extend beyond achieving website compliance. Compliance obligations span across all business aspects and necessitate expert analysis.
When it comes to implementing Banners and Policies, trust My Agile Privacy—the only solution that excludes unnecessary implementations not mandated by regulations.
Logo CMP partner GoogleLogo CMP partner GoogleLogo CMP partner GoogleLogo IAB Europe approvedLogo IAB Europe approved