Safari is blocking Google Analytics, GTM, and Google Ads scripts: reasons and solutions

Updated
Jun 26, 2026
Also available in

The concern about data accessibility is growing. Formerly, advertisers could rely on a wide variety of data sources. This is no longer the case due to evolving privacy regulations, the depreciation of 3rd-party and 1st-party cookies, and proactive consumer behaviors like using ad-blockers and selecting opt-out options. The change is making old data sources less useful. Advertisers and marketers who use browser tracking and cookies started to have a more challenging time.

And now comes the Safari update, which can significantly impact Google Analytics data and marketing campaigns. In this article, we will describe the recent changes in Safari tracking restrictions and show how server-side tagging with Stape and our Custom Loader power-up can help you overcome them.

What’s new in Apple privacy features

Below is the short list of Apple privacy and security features announced for the update:

  • Safari removes click IDs from the URLs when using Incognito mode and Advanced protection. Intelligent Tracking Prevention (ITP) impacts tracking scripts by blocking third-party cookies and cross-site tracking, particularly affecting Google Analytics.
  • Safari blocks Google Tag Manager, analytics, and advertising scripts in Incognito and Advanced protection modes.
  • Link tracking protection in messages and mail.
  • App privacy improvements.

This new feature is designed to remove user-specific tracking details from URLs. Many websites append additional URL parameters to monitor user activity.

With this update, any links shared via Messages and Mail will have this tracking data removed, yet the links will function as usual. This protection also applies to links accessed in Safari’s Private Browsing mode.

By default, using Incognito mode removes any identifiers that can be traced back to the user when they click a link. However, parts of the link that can’t identify the user remain unchanged. This update significantly impacts Safari users, as Safari's Intelligent Tracking Prevention (ITP) limits tracking capabilities, especially for users accessing sites through iframes.

Impact on Google Tag Manager

Each tag management system is treated differently in the newest Safari update, primarily when users utilize Safari’s Private Browsing mode and opt for Advanced Protection.

The most significant restrictions were implemented for Google Tag Manager, while other tagging systems like Tealium work perfectly fine in all Safari modes.

In the latest Safari update, Google Tag Manager is blocked by default when someone uses Safari Incognito mode or enabled Safari Advanced protection. This means any code or tag you’ve set up with GTM won’t work, impacting analytics, user experience, advertising, and other key website features. So yes, Safari IS blocking Google Tag Manager in its update. Google Analytics users also face challenges due to the new restrictions, especially with the transition from Universal Analytics 4 to Google Analytics 4 and the removal of third-party cookies.

Impact on Google Analytics

  • Does Safari block Google Analytics?

Google Analytics has the same impact as Google Tag Manager. Google Analytics script is blocked when a person uses Safari Incognito mode and is blocked by default when Advanced Tracking protection is enabled. There is no difference if you place the GA script directly on the website or use any tag management system. So, the answer is yes, the update IS blocking Google Analytics in Safari.

Impact on Google Ads

Google Ads and Floodlight scripts are blocked in Safari Incognito mode and when a user enables Advanced Tracking protection. The same restriction also applies to Facebook scripts. At the same time, TikTok and Bing ad tags are not blocked in the exact scenarios. 

What is the solution?

It is simple - start using server-side tracking. With the server Google Tag Manager located on a custom domain, GTM script won’t be blocked in Safari Incognito mode or when Advanced Tracking protection is enabled. If you set up server-side Google Analytics and Google Ads Tag Manager server side with the help of sGTM that utilizes a custom domain, GA and GAds scripts won’t get blocked either.

Instead of the standard GTM container loader, use a Custom Loader to avoid GTM load locks.

The main benefit of a Custom Loader is that it helps to make the tracking script invisible for most of the script and ad-blocking tools and techniques.

A Custom Loader is free for all Stape users and can be set up quickly:

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

Stape account

2. Go to Power-ups and click Use next to the Custom Loader panel.

sGTM containers

3. Toggle the Custom Loader switch to enable it and click Save changes.

Power-ups section in Stape account

4. 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.
Code & Setup information

Testing

To verify the setup is working:

  1. Open any page on your website.
  2. Right-click → Inspect → open the Network tab.
  3. Filter requests by your custom subdomain or same-origin path.
  4. Look for the GTM request URL - it should return a 200 OK status code.
With a loader example
i

Note:

With Custom Loader and enhanced ad blocker protection enabled, GA4 request URLs will appear encrypted.

With a Custom Loader and custom domain, you can establish 1st party cookies, extend the lifespan of these cookies, and enhance the resilience of the Google Tag Manager and Google Analytics scripts against ad-blocking software and algorithms.

When using server GTM to establish Facebook Conversion API, it's essential to transmit fbp and fbc to Facebook's servers. Setting these cookies is impossible if you rely on a third-party subdomain as a tagging server, as only your primary domain can create cookies for your site. 

With a custom subdomain, the data sent to Facebook would be unlimited, leading to fewer events being credited to your campaigns. The Click ID and browser ID (fbc and fbp) are crucial for gauging the effectiveness of your Facebook advertising campaigns. By integrating your web GTM ID into the stape.io Custom Loader, you'll notice that gtm.js and gtag.js have been substituted with a random request path. This will help conceal the Google Tag Manager and Google Analytics 4 scripts from ad blockers.

Conclusion

In the newest Safari update, Google Tag Manager, Google Analytics, Google Ads, Floodlight, and Facebook scripts are blocked when someone uses an Incognito Mode or enabled Advanced Tracking protection. 

Server Google Tag Manager with a custom domain helps to overcome these restrictions. Using a Custom Loader can even strengthen your tracking accuracy. In particular, it can:

  • Set 1st party cookies. 
  • Make GTM and GA4 resistant to AdBlockers and ITPs.
  • Keep your data tracking intact.

If you need help setting up a Custom Loader or would like an audit of your current setup, don’t hesitate to contact us! Even though Safari browser update can block Google Analytics, you can take steps to keep your tracking of Safari users accurate.

Comments

Try Stape for all things server-side