Stape/Documentation

Cookie Keeper power-up

Updated Apr 20, 2026

The Cookie Keeper power-up extends the lifetime of your first-party cookies, preventing browsers with Intelligent Tracking Prevention (ITP), such as Safari 16.4+, from expiring them after 7 days. This ensures consistent user identification, longer attribution windows, and more accurate retargeting across sessions.

Cookie Keeper without custom cookies is available on the Pro subscription plan and higher. The custom cookies are available on the Business subscription plan and higher. To check your current plan or upgrade, go to your sGTM container settings.

1. Log in to your Stape account and select your sGTM container from the dashboard.

Log in to your Stape account and select your sGTM container from the dashboard.

2. Go to Power-ups and click Use next to the Cookie Keeper panel.

Go to Power-ups and click Use next to the Cookie Keeper panel.

3. Toggle the Cookie Keeper switch to enable it.

Toggle the Cookie Keeper switch to enable it.

4. Under Standard cookies, select which cookies to extend. Supported cookies include:

NameCookieTime
Stape_dcid13 months
stape13 months
Google Analytics _ga13 months
FPID13 months
Google ADsFPAU90 days
FPGCLAW90 days
_gcl_au90 days
FPGCLGB90 days
_gcl_aw90 days
_gcl_gb90 days
FPGCLGS90 days
_gcl_gs90 days
FPGSID90 days
Facebook_fbp90 days
_fbc90 days
TikTok _ttp13 months
ttclid1 month
Affiliates awin_awc400 days
awin_source400 days
awin_sn_awc365 days
rakuten_site_id400 days
rakuten_time_entered400 days
rakuten_ran_mid400 days
rakuten_ran_eaid400 days
rakuten_ran_site_id400 days
outbrain_cid400 days
taboola_cid400 days
cje400 days
Klaviyostape_klaviyo_kx400 days
stape_klaviyo_email400 days
Snapchat_scclid90 days
_scid400 days
Linkedinli_fat_id90 days
Microsoft ads (Bing)uet_vid90 days
Microsoft Bing_uetmsclkid 90 days
Pinterest_epik90 days
Google D&V 360FPGCLDC90 days
_gcl_dc90 days
Under Standard cookies, select which cookies to extend.

Custom cookies

If the cookies you need aren’t in the standard list, you can configure custom cookies. Enter the cookie name and optionally set an expiration in days (leave blank to keep indefinitely).

Custom cookies

5. Click Save changes.

6. In the Code & Setup information section configure the following settings:

  • Domain - select one of the domains linked to your container.
  • Web GTM ID - enter your web Google Tag Manager ID.
  • Enhanced ad blocker protection - when enabled, all requests to your sGTM server are encrypted so ad blockers can’t block them based on request patterns. Learn more about the enhanced ad blocker protection.
  • Same Origin Path - if you use the same-origin approach, enter the path here so both GTM and gtag.js load through it.
  • Platform - here you can either:
    • Select your CMS platform (such as Shopify, Wordpress, etc.). In this case you’ll be required to install and configure a Stape app.
    • Select Other to receive a JS snippet in case you’re using another platform or a custom website.

Testing

The steps below use Google Analytics _ga cookie as an example, but you can apply the same flow for any platform. To test the flow, make sure you’ve set up at least one GA4 tag.

  1. Open the Safari browser. The version shouldn’t be older than 16.4. To confirm the version, click Safari in the menu bar and select About Safari.
  2. Enter your site’s URL with the appended ?galid=test123 query parameter to set the _ga cookie. For example, yourwebsite.com/?galid=test123.
  3. Right-click the page → Inspect ElementStorage tab → Cookies.
  4. Locate _ga, copy and paste its value somewhere, then delete the cookie (right-click on the cookie → Delete).
  5. Refresh the page twice.
  6. Confirm the _ga cookie has reappeared with the same value. If yes, Cookie Keeper is working correctly.
 Storage tab

Use case

A sample scenario is an eCommerce store where Safari accounts for roughly 30% of total traffic. Because Safari's ITP expires the _ga cookie after 7 days, a large share of returning visitors are re-identified as new users on every visit, and conversions from campaigns that run longer than a week lose their attribution chain, they show up as Direct in GA4 instead of their true source.

For example, an eyewear retailer running this exact setup saw 34.63% of all traffic misattributed as Direct. After enabling Cookie Keeper, Direct traffic dropped by 67.9%, while Paid Search grew by 56.8% and Organic Search by 36.1%.

You can achieve the same improvement with this flow:

  1. In Google Analytics, go to ReportsTraffic acquisition and look at the share of Direct / (none) sessions over a 30-day window. If Direct is disproportionately high, ITP cookie resets are likely transforming the known source sessions into Direct.
  2. Filter the Traffic acquisition by Browser. If Safari sessions show a noticeably higher Direct share than Chrome sessions for the same period, ITP is the cause.
  3. Enable Cookie Keeper and select to extend Google Analytics cookies.
  4. Monitor traffic acquisition after enabling Cookie Keeper. Direct traffic should begin declining as previously unattributed Safari sessions are correctly assigned to their original sources.

Comments

Can’t find what you are looking for?