---
title: "What is gtm-msr.appspot.com and How to Prevent It from Triggering Tags in GTM — Sealmetrics Docs"
description: "Learn why gtm-msr.appspot.com appears in Google Tag Manager and how to prevent it from firing tags or polluting your analytics."
canonical_url: "https://sealmetrics.com/docs/reports/insights/gtm-msr-appspot-and-tag-blocking/"
lang: "en"
date_modified: 2025-11-15
content_type: "documentation"
owner: "docs"
llm_priority: "useful"
last_verified: "2025-11-15"
source: https://sealmetrics.com/docs/reports/insights/gtm-msr-appspot-and-tag-blocking/
publisher: Sealmetrics
---

# What is gtm-msr.appspot.com and How to Prevent It from Triggering Tags in GTM

Learn why gtm-msr.appspot.com appears in Google Tag Manager and how to prevent it from firing tags or polluting your analytics.

When working with Google Tag Manager (GTM), you may notice traffic coming from **gtm-msr.appspot.com**. This domain is owned by Google and appears in very specific scenarios.

## What is gtm-msr.appspot.com?

This domain appears when:

- You (or your team) enter **Preview Mode** in Google Tag Manager
- Google runs **automated scans** or internal container checks
- A **browser extension** or tool triggers a render for debugging
- GTM loads your container inside an **Appspot sandbox environment**

Important

This traffic **is NOT from real users** — but it *can* cause your tags to fire, which leads to:

- Fake pageviews
- Phantom conversions
- Polluted campaign attribution
- Incorrect ROAS calculations

## Why This Domain Is a Problem

If tags fire when GTM loads from `gtm-msr.appspot.com`, you may experience:

- Inflated events
- Artificial conversions in Meta Ads / Google Ads / TikTok
- Incorrect GTM trigger debugging
- Polluted analytics reports

This is especially harmful for:

- Conversion tracking
- Ads optimization signals
- GTM-based event measurement

## How to Prevent Tags From Firing on gtm-msr.appspot.com

You can fully block this domain at the trigger level by using a simple variable.

### Step 1 — Create a blocking variable in GTM

1. Go to **Variables**
2. Click **New → Custom JavaScript Variable**
3. Name it: `IsNotGTMAppspot`
4. Use this code: ```js
function() {
  return location.hostname !== "gtm-msr.appspot.com";
}
```
5. Click **Save**

This variable returns `true` only when the page is **not** GTM's sandbox domain.

### Step 2 — Add the condition to all triggers

For every trigger that launches tags (pageviews, clicks, conversions, etc.):

1. Open the trigger
2. Add this condition: ```plaintext
IsNotGTMAppspot  equals  true
```

This ensures tags fire everywhere **except** inside GTM's Appspot preview environment.

### Step 3 — Test it

1. Click **Preview** in Google Tag Manager
2. Confirm the debug URL becomes `https://gtm-msr.appspot.com/...`
3. Check the tag panel — no tags should fire

If everything looks correct:

- Publish your container
- Your tags are now protected from false firing

## Related documentation

- [Google Tag Manager Template](https://sealmetrics.com/docs/integrations/google-tag-manager.md) — Install the Sealmetrics pixel through GTM
- [Bot Detection & Traffic Quality](https://sealmetrics.com/docs/security-privacy/bot-detection.md) — How Sealmetrics filters non-human traffic
- [How to Track Google Ads Campaigns](https://sealmetrics.com/docs/reports/insights/how-to-track-google-ads-campaigns.md) — Prevent inflated ad conversions
- [Sources Report](https://sealmetrics.com/docs/reports/sources.md) — Verify campaign attribution stays clean
