Advertising cookie · Pinterest Tag

_pin_unauth Cookie: What It Is, Who Sets It, and Consent Rules

Last verified 2026-10-17 · Updated 2026-10-17

On this page
  1. What the _pin_unauth cookie does
  2. Who sets the _pin_unauth cookie
  3. Does the _pin_unauth cookie need consent?
  4. How to block the _pin_unauth cookie
  5. How long the _pin_unauth cookie lasts
  6. Cookies that work with _pin_unauth
  7. Scripts and requests of the Pinterest Tag
  8. _pin_unauth cookie FAQs

What the _pin_unauth Cookie Does on Your Site

The _pin_unauth cookie is a first-party advertising cookie that the Pinterest Tag sets on your domain to identify a visitor whom Pinterest is unable to match to a Pinterest account. The _pin_unauth cookie is "a first party cookie placed by the Pinterest tag when we are unable to match the user", according to the Pinterest Business help on tag parameters and cookies. The Pinterest Tag creates the _pin_unauth cookie on your site domain, and the cookies of the tag stay "persistent for one year from when you install the tag", according to the same help article.

The _pin_unauth cookie is the first-party twin of the _pinterest_ct_ua cookie, which Pinterest sets as a third-party cookie. The _epik cookie joins both after a visitor arrives from a Pinterest ad.

_pin_unauth cookie facts
Cookie name_pin_unauth
VendorPinterest Tag
CompanyPinterest, Inc. (Pinterest Europe Ltd. for visitors in the EU)
CategoryAdvertising
PartyFirst-party
DomainYour own root domain, for example example.com
Set byJavaScript, through the Pinterest Tag (core.js) from s.pinimg.com
Retention1 year (365 days)
Value exampledWlkPWY2ODhhODI5LWI0OTItNGMxNy1hOWRiLTFjNWQ2Nzg5MDEyMw
HttpOnlyNo
SecureNo
SameSiteLax
Cookie Consent categorytargeting
Privacy Consent vendor categoryAdvertising (advertising)

Who Sets the _pin_unauth Cookie

The Pinterest Tag sets the _pin_unauth cookie with JavaScript on your root domain, and the Pinterest Tag "creates and accesses cookies in a first-party context on your site domain", according to the Pinterest Business help. A TermsFeed check in Chrome on 17 October 2026 found the _pin_unauth cookie right after the first pintrk('page') call, with SameSite=Lax and no click on a Pinterest ad.

The _pin_unauth value is a Base64 text. Decoded, the value starts with uid=, followed by the ID of the browser.

Read how Pinterest, Inc. handles the data in the Pinterest Tag privacy policy, and sign the Pinterest Ad Data Terms before you collect data from visitors in the EU or the UK. Both documents appear in the sources at the end of this page.

How to Block the _pin_unauth Cookie Until Visitors Accept

Block the _pin_unauth cookie by holding back the Pinterest Tag base code until the visitor accepts advertising cookies. TermsFeed Free Cookie Consent and TermsFeed Privacy Consent place the Pinterest Tag in the advertising category. Check whether an exemption applies to your own use of the Pinterest Tag in the consent rules for the _pin_unauth cookie.

The Pinterest Tag writes no _pin_unauth cookie while the base code waits as a tagged script, and Pinterest receives no page visit from a visitor who declines.

Block the _pin_unauth Cookie With TermsFeed Free Cookie Consent

TermsFeed Free Cookie Consent runs a tagged script only after the visitor accepts its category. Change type="text/javascript" to type="text/plain" and add data-cookie-consent="targeting", the Cookie Consent category for advertising cookies. The tagged the Pinterest Tag base code looks like this.

<script type="text/plain" data-cookie-consent="targeting">
  !function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(
    Array.prototype.slice.call(arguments))};var
    n=window.pintrk;n.queue=[],n.version="3.0";var
    t=document.createElement("script");t.async=!0,t.src=e;var
    r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)}}("https://s.pinimg.com/ct/core.js");
  pintrk('load', 'YOUR_TAG_ID');
  pintrk('page');
</script>

Cookie Consent runs the tagged code after the visitor clicks "I agree" or accepts the targeting category in the Preferences Center. The illustration shows the consent banner and the script it releases.

The TermsFeed Free Cookie Consent banner: (1) the visitor clicks "I agree", (2) Cookie Consent runs the script tagged targeting. Illustration of the consent banner.

Cookie Consent is free and needs no account. Build your free consent banner with TermsFeed Free Cookie Consent.

Block the _pin_unauth Cookie With TermsFeed Privacy Consent

Add the Pinterest Tag from its template in TermsFeed Privacy Consent and type your Tag ID, which Pinterest Ads Manager shows under Conversions and Pinterest Tag. The Pinterest Tag loads only after the visitor accepts the Pinterest vendor, without the <noscript> image and without enhanced match.

Each social ad pixel gets its own Advertising vendor in Privacy Consent, so a visitor accepts Pinterest and declines TikTok in the Preferences Center. Remove the Pinterest Tag from your theme and from any plugin that adds the tag, so the tag never loads before consent.

The Pinterest Tag template asks for the Tag ID and fills every other field of the vendor. Pick the "Pinterest Tag" card under Advertising, enter the Tag ID, and click "Add Pinterest Tag". Find the Tag ID in Pinterest Ads Manager under Conversions › Pinterest Tag. The illustration shows the template form in the TermsFeed app.

The Pinterest Tag template in TermsFeed Privacy Consent: (1) pick the card, (2) enter the Tag ID, (3) click "Add Pinterest Tag". Illustration of the TermsFeed app.

Privacy Consent detects the location of each visitor and records every answer in a consent log. Set up the Pinterest Tag from its template with TermsFeed Privacy Consent.

Block the _pin_unauth Cookie With the Pinterest Tag Consent Call

Call pintrk('setconsent', true) once the visitor accepts advertising cookies, and call pintrk('setconsent', false) when the visitor declines or withdraws consent. Pinterest sends no events for the visitor while consent is set to false, according to the Pinterest Business help on the base code. Pinterest deletes the first-party cookies and storage of the session as well.

Hold back the whole base code as well. The consent call alone still loads core.js from Pinterest for a visitor who declined.

<script type="text/plain" data-cookie-consent="targeting">
  pintrk('setconsent', true);
</script>

Stop the _pin_unauth Cookie in the Pinterest Tag Code

Add 'fp_cookie': false to the options of pintrk('load', ...) to delete the first-party cookies of the Pinterest Tag, according to the Pinterest Business help on the base code. The option fp_localStorage set to false stops the first-party local storage of the tag.

The options stop the first-party cookies only. The Pinterest Tag still sends every page visit to ct.pinterest.com, so the tag needs consent with fp_cookie set to false as well.

How to Verify That the _pin_unauth Cookie Waits for Consent

Verify the setup in a private window. Open Chrome DevTools, select the Application tab, and open Cookies. Click "I decline" on the consent banner and reload the page. The _pin_unauth cookie must not appear in the list until you accept advertising cookies.

How Long the _pin_unauth Cookie Lasts

The _pin_unauth cookie lasts 1 year (365 days). Safari caps the cookies that JavaScript sets at 7 days of Safari use without an interaction with your site, according to the WebKit team behind Safari.

The cookies of the Pinterest Tag stay "persistent for one year from when you install the tag", according to the Pinterest Business help on tag parameters and cookies. A TermsFeed check in Chrome on 17 October 2026 measured an expiry of 1 year (365 days) for the _pin_unauth cookie.

Scripts and Requests of the Pinterest Tag That Come With the _pin_unauth Cookie

The catalog lists 2 scripts, pixels, and data endpoints of the Pinterest Tag, which a cookie scanner or the Network tab of Chrome DevTools shows next to the _pin_unauth cookie. Block the main script, and the requests in the table stop with the main script.

TypeResourceHostWhat it does
ScriptPinterest Tag (core.js)s.pinimg.comThe Pinterest Tag loads from s.pinimg.com and writes the _pin_unauth cookie on your domain.
Data endpointPinterest Tag event endpoint (ct.pinterest.com)ct.pinterest.comThe event endpoint receives every page visit and conversion that the Pinterest Tag reports.

_pin_unauth Cookie FAQs

Is _pin_unauth a necessary cookie?

No, the _pin_unauth cookie is not a strictly necessary cookie. Firstly, your site works the same for a visitor who refuses the _pin_unauth cookie. Secondly, Pinterest uses the cookie to measure ads for visitors it fails to match, a purpose the ePrivacy Directive exemption does not cover. Thirdly, the Pinterest Ad Data Terms require advertisers to get consent for the cookies of the tag.

What is the difference between _pin_unauth and _pinterest_ct_ua?

The _pin_unauth cookie is a first-party cookie on your domain, and the _pinterest_ct_ua cookie is "the same as _pin_unauth, but as a third party cookie", according to the Pinterest Business help. Both cookies serve the same purpose, and only the domain differs.

Does pintrk setconsent false delete the Pinterest cookies?

Yes, pintrk('setconsent', false) deletes the first-party cookies and storage of the Pinterest Tag for the session, according to the Pinterest Business help on the base code. Firstly, Pinterest sends no events for the visitor. Secondly, the tag removes the _pin_unauth cookie and the other first-party cookies. Thirdly, the call needs the base code on the page, because the pintrk function comes from the base code.

How long does the _pin_unauth cookie last?

The _pin_unauth cookie lasts 1 year (365 days). Pinterest documents 1 year for the cookies of the tag, and Safari deletes the cookie earlier, after 7 days of Safari use without an interaction with your site.

Sources for the _pin_unauth Cookie

The facts on this page come from the documentation Pinterest publishes, checked on 2026-10-17. The catalog lists every source so you check each fact yourself.