Safari ITP & First-Party Cookies: Why Your 28-Day Attribution is Actually 1 Day
CAPI & Architecture · 8 min read · June 2026
Safari's Intelligent Tracking Prevention (ITP) is silently erasing your ad attribution cookies. Learn how server-side HTTPOnly cookies restore your 30-day tracking window.
If you run paid social ads (Meta, TikTok, Pinterest) for a Shopify store, you are likely optimizing campaigns using a 7-day or 28-day attribution window. However, under the hood of modern web browsers, a silent executioner is actively deleting your tracking cookies, turning your 7-day window into a1-day windowfor a massive chunk of your traffic.
That executioner is Apple'sITP (Intelligent Tracking Prevention). In this article, we'll explain how Safari treats cookies set by JavaScript, why your analytics are underreporting returning customers, and how server-side tracking restores attribution accuracy.
To understand ITP, we must separate cookies into two categories:
When third-party cookies were blocked, ad networks shifted to using client-side JavaScript to setfirst-party cookies. For example, when a user clicks a Meta ad, they land on your site with a URL parameter calledfbclid. Meta's client-side JavaScript pixel reads this parameter and writes it into a first-party cookie on your domain (e.g.,_fbc).
Apple realized ad platforms were using JavaScript to bypass third-party cookie blocks. To close this loop, Apple updated ITP to restrict the lifespan of any first-party cookies set via JavaScript (usingdocument.cookie):
⚠️Why this matters:If a customer clicks your Meta ad on Monday, browses your store, and returns on Wednesday to make a purchase, their ad click cookie (_fbc) was deleted on Tuesday. To your pixels and Google Analytics, this user is a "new direct visitor", and the ad campaign getszero creditfor the sale.
ITP only targets cookies created by the browser's client-side JavaScript engine. It doesnotrestrict cookies set directly by a server response using theSet-Cookieheader with theHTTPOnlyandSecureflags.
GotTracked bypasses ITP restrictions by shifting the cookie generation from the browser's JavaScript engine to the server layer using First-Party App Proxy Tunneling:
If you rely purely on browser pixels, you are losing up to 35% of your attribution data simply because Safari users are completing purchases 2 to 14 days after their initial click. Shifting your attribution setup to a server-side proxy is no longer an optional growth hack — it is a structural necessity to keep ad platforms targeting the right buyers.
Safari's Intelligent Tracking Prevention (ITP) is Apple's anti-tracking technology built into Safari. It limits third-party cookie lifetimes to 24 hours, caps JavaScript-set first-party cookies at 7 days, and blocks cross-site tracking requests — all of which reduce the accuracy of ad attribution for Shopify stores.
Cookies set by JavaScript (like the Meta Pixel's _fbp cookie) are limited to 7 days in Safari under ITP 2.3+. Cookies set server-side via HTTP response headers on your own domain are not subject to this cap.
Yes. Shopify's checkout runs on mystore.myshopify.com — a different subdomain from your storefront. Safari ITP treats these as cross-site and applies stricter restrictions, which can break click ID (fbclid, gclid) persistence between browsing and checkout.
Safari accounts for roughly 25–35% of global e-commerce traffic, with higher shares on mobile (iPhone Safari is the default iOS browser). This makes ITP one of the most impactful browser restrictions for online retailers.
Partially. Server-set first-party cookies avoid the 7-day JavaScript cookie cap, but Safari still enforces cross-site tracking restrictions. The most reliable solution combines server-set cookies with server-side CAPI event delivery, so conversion data never depends on cookie persistence.
GotTracked sets up in under 15 minutes and is free for the first 2,000 pioneer merchants. Explore our technical deep dives on How to Boost Meta Event Match Quality (EMQ), Meta CAPI Parameters & Events Checklist, and Meta Advantage+ Shopping Campaigns CAPI Setup.
Reclaim lost ad conversions. Direct server-side CAPI routing and first-party DNS proxies prevent tracking blocks, boosting merchant match rates by 30%.
Subscribe to get the latest attribution guides and product updates.
Related Attribution & Ad Tracking Guides
Try the Free Shopify ROAS & Ad Tracking Loss Calculator | Explore GotTracked Server-Side CAPI | View All Attribution Guides