Own CDN increases cookie lifetime in Safari 16.4 and other browsers using ITP set from “third-party” IP addresses.
The most recent iteration of ITP reduces the lifetime of first-party cookies to 7 days if they are set through a different IP address than your website.
By utilizing your Stape Own CDN, you can route the server GTM tagging URL via the same IP address your site uses. This ensures that the IPs for your sGTM URL and website are identical. As a result, WebKit will not shorten the duration of first-party cookies set via the server-side Google Tag Manager.
Stape Own CDN is available on all plans.
Note: Please keep in mind that with Own CDN, you are responsible for the issuance of a SSL certificate for your custom domain. Make sure that the SSL certificate is in place, only after that we can validate your custom domain from our side.
1. Go to your Stape container setting and select Own CDN.

2. Go to CloudFlare and configure CNAME record for the tagging server URL. Please make sure that Proxied is enabled. The setting should look like in the screenshot below.

3. Next to your domain name in CloudFlare click three dots → Configure Rules → Create Rule → Configuration Rules.

Specify any name you like for the rule.
Select Custom filter expression:

Scroll down on this page and find the SSL feature. Activate it with Full option.

4. Go to the Rules → Overview → Create Rule → Request header Transform Rules.

Specify any name you like for the rule.
Select Custom filter expression:

In the modify headers section, specify:

Deploy changes.
5. Go to Rules → Overview → Create rule → Cache rules.

Specify any name you like for the rule.
Select Custom filter expression:
Cache eligibility: Bypass cache.

Deploy changes.
That's it, now all your requests to and from sGTM will be proxied through Cloudflare.
*If you are using a Web Application Firewall please make sure that it will not block these requests.
Safari's ITP update reduces cookie lifespan. Discover how Stape's Cookie Keeper and Own CDN solutions enable first-party cookies and maintain tracking accuracy.
A guide on how deal with IP addresses when using Own CDN.