# code to block pixel LinkedIn cookie

**URL:** <https://community.hubspot.com/t/code-to-block-pixel-linkedin-cookie/80414>\
**Category:** Blog, Website & Page Publishing\
**Tags:** workaround, ads, developer, analytics-tools, gdpr, content\
**Created:** [May 2, 2023, 4:45pm UTC](https://community.hubspot.com/t/code-to-block-pixel-linkedin-cookie/80414 "2023-05-02T16:45:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ICaceres](https://avatars.discourse-cdn.com/v4/letter/i/a698b9/32.png) [@ICaceres](https://community.hubspot.com/u/ICaceres)\
**Post date:** [May 2, 2023, 4:45pm UTC](https://community.hubspot.com/t/code-to-block-pixel-linkedin-cookie/80414/1 "2023-05-02T16:45:27Z")

</div>

Hello,

currently, we are implementing the OneTrust cookie banner in our blog: [https://www.cideon.blog/](https://www.cideon.blog/), with the autoblocking configuration but we are seeing the pixel ads LinkedIn cookie is still running, do you know how we can block this cookie from the js code?

---

<div class="post-metadata">

**Author:** ![MiaSrebrnjak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miasrebrnjak/32/10_2.png) [@MiaSrebrnjak](https://community.hubspot.com/u/MiaSrebrnjak)\
**Post date:** [May 3, 2023, 12:14pm UTC](https://community.hubspot.com/t/code-to-block-pixel-linkedin-cookie/80414/2 "2023-05-03T12:14:37Z")

</div>

Hi @ICaceres,

Thank you for reaching out to the Community!

I wanted to share this Community post: [blocking LinkedIn cookies using OneTrust cookie consent banner script.](https://community.hubspot.com/t5/CMS-Development/blocking-LinkedIn-cookies-using-OneTrust-cookie-consent-banner/m-p/787254)

I believe @himanshurauthan’s answer to this post is what you’re looking for.

Cheers  
Mia, Community Team
