Block Traffic from gtm-msr.appspot.com on GA4

Google Analytics BCS 2 years ago (2024-06-17) 5010 Views 0 Comments

Table of Contents

Update time: June 17, 2024

Issue

Recently, I noticed unexpected traffic coming from gtm-msr.appspot.com in GA4.

This traffic appears in the “Page title and screen class” report and does not belong to my website:Block Traffic from gtm-msr.appspot.com on GA4

At first glance, this looks like normal pageview data, but the source domain is clearly suspicious.

Analysis

Identify the source URL.

By drilling down into the report, you can find that the page location being tracked looks similar to:Block Traffic from gtm-msr.appspot.com on GA4

 

This is not a domain owned or controlled by me.

Open this URL:Block Traffic from gtm-msr.appspot.com on GA4

After further investigation, it becomes clear that:

  • The GTM container loaded on this page is not intentionally deployed by me
  • The domain gtm-msr.appspot.com is being used as a host to load multiple GTM containers
  • Each container can send data to different GA4 properties

This strongly indicates automated or machine-generated traffic, not real user behavior.

The mechanism is relatively simple:Someone opens a URL such as https://gtm-msr.appspot.com/render2?id=GTM-XXXXXXX.This page loads your GTM container ID. Once GTM loads, GA4 page_view tracking is automatically triggered, GA4 records a page view where the page location is gtm-msr.appspot.com, not your actual website

 

 

Solution

Restrict GA4 page tracking by domain in GTM

The most effective solution is to add a domain restriction to your GA4 pageview trigger in Google Tag Manager.

Modify your GA4 page_view trigger so that it only fires when the page is viewed on your own domain(s):

Block Traffic from gtm-msr.appspot.com on GA4

With this restriction in place: Even if gtm-msr.appspot.com loads your GTM container, GA4 page_view tag will not fire.

Like (8)
Post my comment
Cancel comment
Expression Bold Strikethrough Center Italic

Hi, you need to fill in your nickname and email!

  • Nickname (required)
  • Email (required)
  • Website