privacy·attribution·advertising
Amazon's new 30-day tag cookie gets 7 days on Safari
Published 2026-11-15 ·primary source
What it means
Amazon now keeps two of its own cookies on your domain: the click token amznAref and the new aatSession, which links a visitor's events for 30 days after their last page view. Both are written by JavaScript in the visitor's browser, so on Safari they last 7 days without a visit, and Amazon's 30-day figures hold only on Chrome-like browsers. Declare the new cookie in your consent setup, and split Amazon-attributed conversions by browser before you read a change.
Amazon says its new tag cookie lasts 30 days. On Safari, it lasts 7 days without a visit. Amazon’s
release notes, in an entry dated 16 November 2026, say the Amazon Ad Tag now sets a first-party
cookie called aatSession on advertiser websites in North America. It is on by default, and you need
no setup.
What Amazon said
The release note and the Ad Tag guide say:
- Name and lifetime:
aatSession, expiring 30 days after the visitor’s last page view. Each page view moves the expiry date forward. - Job: it holds an identifier that links the events one visitor triggers on your site, so Amazon can “measure and attribute those events more reliably as third-party cookies are phased out”.
- Where: North America only.
- Consent: the tag sets, reads and sends it only when the visitor’s TCF, GPP or Amazon Consent Signal allows it. Amazon’s consent guide labels its US example “no consent signal required”.
- Off switch:
amzn("disableAATSessionCookie", true);in the base code on every page, before the first event.
It joins a cookie the tag already sets. When someone clicks an Amazon ad, the landing URL carries a
measurement token in an aref parameter. The tag stores it in amznAref, also for 30 days.
What the script does today
We downloaded the tag script, c.amazon-adsystem.com/aat/amzn.js, this morning. Its Last-Modified
date is 12 October 2026. It names amznAref with a 30-day lifetime. It does not contain the string
aatSession or the off switch. So the script we were served does not set the new cookie yet, even
though the release note says “now”. Expect it when Amazon ships a new build of the script.
The script writes every cookie the same way: document.cookie, with an expiry date, SameSite=Strict
and secure. We also loaded the tag and Amazon’s consent script on a test page in Chromium 153. With a
placeholder tag ID the tag sent no events, but the consent script wrote its own cookie, amzn_consent,
the same way, with a 28-day expiry.
The read
“Session” here means visitor. A GA4 session ends after 30 minutes of
inactivity by default. aatSession lasts until 30 days pass with no page view. A person who visits
once a week keeps the same aatSession for months. In practice, it is a first-party visitor ID that
Amazon reads on your domain.
On Safari, both 30-day cookies become 7-day cookies. Amazon’s tag is a JavaScript file that loads
from Amazon’s domain. A response from Amazon’s servers can only set cookies on Amazon’s domain. To put
a cookie on yours, the tag must write it from JavaScript, and the current script does exactly that.
WebKit’s tracking prevention deletes cookies created in JavaScript after 7 days without a visit. When
Safari detects a click ID that was carried in a link and picked up by script, it caps those cookies at
24 hours. The aref token is that kind of click ID. A Safari shopper who clicks an Amazon ad, does not
come back for a week, and buys on day 10 is a conversion the cookie can no longer link to the click.
The usual way past Safari’s limit is a cookie set by your own server, the case that the
Safari 27.2 fix for CNAMEd sites was about. Amazon’s
guide documents a server-side route only for forwarding aref through a GTM server container.
The gain shows up unevenly. Amazon’s reason for the cookie is the loss of third-party cookies. On Chrome, the new cookie can link 30 days of events. On Safari, it links 7. If Amazon-attributed conversions rise after the script update, check whether the rise comes from Chrome before you credit the campaigns.
One more cookie to declare. Amazon’s US example needs no consent signal, so a US site with no
consent banner should expect the new cookie by default. A site with a CMP must list aatSession under advertising
cookies, or its cookie policy is out of date the day the script ships.
What to do
- Add
aatSessionto your cookie policy and CMP as an advertising cookie from Amazon, next toamznAref. - Split Amazon-attributed conversions by browser for the weeks after the script changes. Read Safari and Chrome separately.
- If you run server-side AAT in a GTM server container, check Amazon’s guide for the session
identifier. The guide says you must forward
aref. It says nothing yet aboutaatSession.
aref is one more click ID whose cookie is shorter on Safari than its platform’s attribution window.
For Google, Meta, Microsoft, LinkedIn and TikTok, the window and the cookie are already out of step:
the click window rests on a cookie that may last 7 days.
Sources
- Amazon Ads API release notes, entry dated 16 November 2026, 'Amazon Ad Tag adds a first-party session identifier cookie': in North America, the Amazon Ad Tag (AAT) now sets a first-party cookie, aatSession, on your website. It holds a session identifier that links the events a visitor triggers on your website, so Amazon Ads can measure and attribute those events more reliably as third-party cookies are phased out. The cookie expires 30 days after the visitor's last page view.advertising.amazon.comverified 2026-11-15
- Same release note: AAT sets, reads and sends the session identifier only when the visitor's consent signals allow it, including TCF, GPP and the Amazon Consent Signal (ACS). No setup is required. To turn the cookie off, add amzn("disableAATSessionCookie", true); to the base code on every page, before the first event.advertising.amazon.comverified 2026-11-15
- Amazon Ad Tag guide, 'Session identifier': availability North America only; cookie name aatSession; cookie duration 30 days after the visitor's last page view; AAT creates and reads the session identifier automatically and sends it with each event it captures.advertising.amazon.comverified 2026-11-15
- Amazon Ad Tag guide, 'Click attribution and the measurement token': when a user clicks an Amazon ad, a measurement token is appended to the clickthrough URL as the aref query parameter. AAT stores it in a first-party cookie, amznAref, which persists for 30 days. If a user clicks several ads within 30 days, all tokens are stored and sent with events. Server-side AAT through a GTM server container must forward the aref parameter from the client-side URL.advertising.amazon.comverified 2026-11-15
- Amazon Ad Tag guide, 'How Amazon Ad Tag works': the Amazon Ad Tag is a JavaScript pixel that captures website events and streams them to Amazon Ads Data Manager.advertising.amazon.comverified 2026-11-15
- Amazon Ad Tag guide, 'Country code and consent': a country code is always required; a consent signal is additionally required for the EEA and the UK. The US example is labelled 'no consent signal required'. When the Amazon consent script loads, all settings default to DENIED until the visitor interacts with the CMP.advertising.amazon.comverified 2026-11-15
- Our download of https://c.amazon-adsystem.com/aat/amzn.js on 15 November 2026 (36,125 bytes, Last-Modified 12 October 2026): the script names the amznAref cookie with a 30-day token lifetime and writes cookies only through document.cookie, with an expires date, SameSite=Strict and secure. It contains neither the string aatSession nor disableAATSessionCookie.c.amazon-adsystem.comverified 2026-11-15
- WebKit's tracking prevention page: ITP deletes all cookies created in JavaScript and all other script-writeable storage after 7 days of no user interaction with the website.
verified 2026-11-15 - WebKit's tracking prevention page: when trackers add click IDs as URL parameters and pick them up through JavaScript on the destination site, ITP detects the link decoration and caps the expiry of cookies created in JavaScript on the landing webpage to 24 hours.
verified 2026-11-15 - Google Analytics Help: by default, a GA4 session ends or times out after 30 minutes of user inactivity, and there is no limit to how long a session can last.
verified 2026-11-15