Blog / Does Google Tag Manager Work in China?

Does Google Tag Manager Work in China?

TL;DR

Google Tag Manager can partially load in Mainland China, but its reliability and speed can be significantly compromised. The GTM container script hosted on googletagmanager.com is not fully blocked, but it loads slowly and inconsistently. More importantly, many of the tags GTM is designed to fire, such as Google Analytics, Google Ads conversion tracking, and Facebook pixels, rely on third-party domains that are either blocked or severely throttled in China.

There is an added layer of complexity that is often overlooked: even when GTM itself could technically load, it may fail to fire tags because the rest of the website is loading too slowly. If a site depends on other blocked or slow third-party resources (Google Fonts, YouTube embeds, reCAPTCHA, and so on), the browser gets stuck trying to retrieve those resources, and GTM tags either never execute or execute too late to capture meaningful data.

Addressing GTM performance in China requires looking at the full picture of how a website loads, not just the GTM script in isolation.

How Google Tag Manager works (a quick overview)

Google Tag Manager is a tag management system that allows marketing and analytics teams to deploy and manage tracking scripts, known as tags, without needing to edit a website's source code directly. Tags can include things like Google Analytics tracking, conversion pixels for ad platforms, remarketing scripts, heatmap tools, and chat widgets.

The way GTM works is straightforward. A small container script is placed on every page of a website. When a visitor loads a page, the browser fetches the GTM container from googletagmanager.com, which then determines which tags should fire based on a set of configured triggers (for example, fire Google Analytics on all pages, or fire a conversion tag only on a thank-you page). The tags are then loaded and executed in the visitor's browser.

This matters for the China question because GTM's functionality depends on two things working properly: the GTM container script loading successfully, and the individual tags it fires being able to reach their destination servers.

Does Google Tag Manager work in Mainland China?

The short answer is: not reliably enough to depend on.

The googletagmanager.com domain is not officially blocked in Mainland China in the same way that, say, google.com or youtube.com are. However, it is subject to significant latency and intermittent accessibility issues. Network conditions between Mainland China and Google's servers vary by region, ISP, and time of day, which means GTM may load in some cases and fail entirely in others.

When the GTM container script does manage to load, the tags inside it still need to reach their respective third-party servers. Google Analytics (analytics.google.com), Google Ads (googleads.g.doubleclick.net), and other Google-owned domains face their own accessibility issues in China. Facebook-owned domains, which are commonly used for conversion pixels and retargeting, are currently blocked entirely.

Even when GTM technically loads, the tags it manages may not fire, may fire with significant delays, or may fail to send data back to the analytics or advertising platforms they are connected to. For teams relying on GTM for analytics accuracy or ad conversion tracking, this creates a significant gap in data from Chinese visitors.

The real issue is not always GTM itself

This is the part that often gets missed in conversations about GTM in China.

GTM tags may fail to fire not because googletagmanager.com is blocked, but because the website itself is loading too slowly for the tags to ever execute. Many modern websites rely on dozens, sometimes hundreds, of third-party resources: Google Fonts for typography, YouTube or Vimeo for embedded video, Google Maps for location pages, reCAPTCHA for form security, social media embeds, chat widgets, and more.

In Mainland China, many of these third-party services are either blocked or significantly slowed. When a browser encounters a resource it cannot retrieve (say, a Google Font file), it does not simply skip it and move on. The browser continues attempting to fetch that resource for a period of time, sometimes 30 seconds or more, before it times out and proceeds to the next request. If a page has multiple blocked resources, these timeouts stack, and the overall page load time can stretch from a few seconds to well over a minute.

GTM tags are typically triggered by page events, such as a page view, DOM ready, or window loaded. If the page never fully loads, or takes so long that the visitor leaves before these events fire, the tags never execute. The GTM script itself may have been capable of loading, but the conditions required for tags to fire were never met because the rest of the page was stuck.

In other words, the question of whether GTM works in China cannot be separated from the broader question of whether the website itself works in China. A site weighed down by incompatible third-party resources will have GTM problems as a symptom, not as a root cause.

How slow-loading websites cause GTM tags to fail

To understand this more concretely, consider how a typical page load works in a browser:

The browser requests the HTML document from the server.

As it parses the HTML, it discovers references to CSS, JavaScript files, images, fonts, and other resources, including the GTM container script.

The browser begins fetching these resources. Some are render-blocking, meaning the page cannot display content until they are retrieved.

If a resource is hosted on a blocked or slow domain, the browser waits for the request to time out. During this time, other resources that depend on it, or that are queued after it, are delayed.

GTM fires tags based on trigger events (page view, DOM ready, window loaded). If the page takes too long to reach these milestones, tags fire late, or not at all.

If a visitor leaves the page before it finishes loading (which is common when load times exceed 5 to 10 seconds), no tag data is captured for that session.

This means that a website could have GTM correctly configured, with a perfectly set up Google Analytics tag inside it, and still collect zero data from visitors in China, not because GTM or GA was blocked, but because a blocked or a slow third-party resource prevented the page from loading in time.

This distinction matters because it changes the solution. Removing GTM alone would not fix the underlying performance issues. Addressing the full set of third-party incompatibilities is what makes both the website and its tracking tools work properly for visitors in China.

The GTM admin console vs. the GTM script

It is worth noting the distinction between the GTM admin console and the GTM script that loads on your website.

The GTM admin console (tagmanager.google.com) is where marketing and analytics teams configure tags, triggers, and variables. This interface sits under the google.com domain, which is currently blocked in Mainland China. Teams located in China cannot access the GTM admin console without a VPN.

The GTM container script (www.googletagmanager.com/gtm.js) is what loads on the visitor's browser when they visit a page. This is the script that determines whether tags fire. As discussed, this script is not fully blocked but faces intermittent access and latency issues in China.

For global teams managing GTM from outside China, the admin console is accessible as normal. The concern is specifically about what visitors in Mainland China experience when they load pages that include the GTM script.

What about Google Analytics firing through GTM?

Google Analytics is one of the most common tags deployed through GTM, and its behaviour in China adds another layer of complexity.

Google Analytics tracking requests are sent to analytics.google.com, which is blocked in Mainland China. The older analytics.js library and the newer gtag.js / GA4 measurement protocol both attempt to send data to Google-owned endpoints that face accessibility issues in China.

Some reports suggest that basic GA tracking (without DoubleClick integration) can fire intermittently in China, meaning some data does get through, but it is inconsistent. GA tracking with DoubleClick integration, which is used for remarketing and demographic reporting, is significantly slower and less reliable.

The practical result is that teams relying on Google Analytics for visitor data from China are likely seeing an incomplete picture. Sessions from Chinese visitors may be underreported, bounce rates may appear artificially high (because the tracking script loads after the visitor has already left), and conversion data may be missing entirely.

This is not a new issue, but it is one that has persisted and become more pronounced as Google Analytics has migrated to GA4, which adds more complexity to the data collection process.

Common workarounds (and their limitations)

There are several approaches teams commonly try when they discover GTM is not working reliably in China.

Removing GTM entirely

Some teams choose to remove GTM from their China-facing pages to avoid the performance impact of a slow-loading script. In some cases this can mean losing the only tag-based tracking for Chinese visitors. This is a trade-off that works for some organizations but may leave a gap in analytics data.

Server-side tagging

Google Tag Manager offers a server-side tagging option, where tag processing happens on a server rather than in the visitor's browser. This can reduce the number of third-party requests made by the browser, however, server-side GTM still requires the initial client-side script to load and send data to the server container. If the website itself is loading slowly due to other third-party incompatibilities, the same cascading delays can affect when and whether data reaches the server container.

Using a CDN

Serving the website through a CDN with points of presence near or in China can reduce latency for first-party resources. However, CDNs are not designed to address blocked third-party domains. A CDN can speed up the delivery of your own HTML, CSS, and images, but it cannot make Google Fonts, YouTube embeds, or Facebook pixels accessible in China. These third-party incompatibilities need to be addressed at the code level, not the infrastructure level.

Hosting in China

Moving a website's hosting to Mainland China can reduce latency and can resolve some accessibility issues. However, hosting in China does not automatically resolve third-party resource incompatibilities and comes with a number of regulatory prerequisites to take into account. A website hosted in Beijing that still calls Google Fonts, loads a YouTube embed, and fires a Facebook pixel will still experience the same third-party failures. Hosting addresses proximity; it does not address compatibility.

How Chinafy helps

Chinafy works by addressing both the infrastructure and code-level incompatibilities that cause websites to load slowly or fail in China.

Rather than requiring teams to rebuild their site, change their hosting, or manually audit and replace every third-party resource, Chinafy identifies the specific resources causing issues, such as blocked scripts, slow-loading fonts, and inaccessible embeds, and optimizes how they are delivered to visitors in Mainland China. This includes handling the third-party resources that GTM typically manages, so that the website loads properly and tracking tools have a chance to fire.

Chinafy layers on infrastructure built for the region, including near-China or onshore CDN delivery depending on individual business requirements, alongside code-level optimization to ensure the full page, including its third-party components, loads fast, fully, and functionally in China.

Because Chinafy addresses the underlying causes of slow page loads (the blocked and slow third-party resources), the conditions for GTM tags to fire are typically restored. The page can reach its load milestones, trigger events fire, and tags often execute as expected.

Ready to see how your website and its tracking tools perform in China? Get in touch with the Chinafy team for a free analysis of your site.

FAQ

Is Google Tag Manager blocked in China?

Not fully blocked, but not reliably accessible either. The googletagmanager.com domain experiences significant latency and intermittent connectivity issues in Mainland China. Even when the GTM container script loads, the individual tags it fires (Google Analytics, Google Ads, Facebook pixels) may be blocked or severely slowed.

Why are my GTM tags not firing for visitors in China?

There are two common reasons. First, the GTM container script itself may not have loaded due to network conditions. Second, and this is frequently overlooked, the website may be loading too slowly due to other blocked or slow third-party resources (Google Fonts, YouTube, reCAPTCHA, and others), preventing the page from reaching the load events that trigger GTM tags.

Will removing GTM fix my website's performance in China?

If your website relies on other blocked third-party resources, those will continue to cause performance issues. GTM is often a symptom of a broader compatibility problem, not the sole cause.

Does a CDN solve GTM issues in China?

A CDN can speed up the delivery of your own first-party resources, but it does not resolve blocked third-party domains. GTM, Google Analytics, Google Fonts, and similar services need to be addressed at the code level, not just the infrastructure level.

Can I use server-side GTM for China?

Server-side GTM can reduce the number of client-side third-party requests, which may help with performance. However, it still requires an initial client-side script to load, and if the broader website is slow due to other incompatibilities, the same cascading delays apply.

What is the difference between the GTM admin console and the GTM script?

The GTM admin console (tagmanager.google.com) is where teams configure tags. It is hosted under google.com and is blocked in China. The GTM container script (www.googletagmanager.com/gtm.js) is what loads on visitors' browsers. The admin console being blocked does not affect global teams managing GTM from outside China; the concern is the container script's accessibility for visitors within China.

Don't get left behind.
Optimize your website for the world's fastest-growing consumer market. Start today, cancel anytime.
Make your website work in China
Fill out the form and one of our Chinafy team members will reach out to you within 1 business day to book an initial call or with a plan for next steps.
check30%-40% faster compared to using a CDN alone.
checkVerifiable results in just 2 weeks, instead of 1-2 years.
checkLittle to no action required from your IT teams.
"Chinafy has made it possible for us to be sure that our web visitors in China have the same good experience as all our other visitors in the rest of the world."
Michela Nalin Francek, Marketing Manager for Nolato
"Over 1 million engineers use SnapEDA each year all over the world. We were attracted to Chinafy's service because of how easy they made it to support the Chinese market."
Natasha Baker, CEO & Founder of SnapEDA
We are very happy with working with Chinafy. They went above and beyond to ensure we help MIT Professional Education deliver world-class online education in China.
Ignacio Cerro, CFO, Global Alumni for MIT Professional Education
"Consistency is crucial for us.
Chinafy fits the bill of what we were looking for."
Jonathan Rhodes, Marketing Technology Manager of Registrar Corp
"The process was super easy and I'm really glad we selected your team. The experience has been beyond my expectations."
Nicolas Duchesne-Lafoest, Product Marketing Manager 
"Chinafy went above and beyond to help me produce my event. I'm not sure I would have been successful without them. The client was elated that we managed to fulfill the request to live-stream into China so quickly."
Kevin Denham, Technical Director at ADM Productions
To start, please share a bit more about you.
Which website do you want to Chinafy?
Tell us your name?
What best describes your company role?
What's your Work Email Address?
What would you like to discuss?
Have a discount code?
By clicking 'Get Started', I also agree to Chinafy's Terms of Service & Privacy Policy.
close
Thanks for getting in touch!
One of our China experts will be in touch with you via email within the next 24 hours with

1 - Expected post-Chinafy results
2 - Your Custom Plan
3 - Next steps.

P.S. Make sure to check your promotions inbox in case our message lands there.

Please feel free to check out our case studies or blog in the meantime.
[[embed: get started form inline type]]

Related Stories

Load More
×

Notey will use the information you provide on this form to be in touch with you and to provide updates and marketing. Please let us know all the ways you would like to hear from us:

You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at community@notey.com. We will treat your information with respect. For more information about our privacy practices please visit our website. By clicking below, you agree that we may process your information in accordance with these terms.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices here.