Skip to main content

How do I set up Google Analytics for my Gamma site?

How to connect Google Analytics to your site using Google Tag Manager, track performance, and optimize your insights with a GTM integration.

Introduction

Gamma lets you track site traffic and user behaviour by integrating Google Analytics through Google Tag Manager (GTM).

🌀 Insight: GA collects data on how visitors interact with your pages, while GTM acts as the middle layer for deploying tracking tags.

To set this up, you’ll need to:

  • Create a Google Analytics account

  • Set up a GTM container

  • Add your GTM tag ID in Gamma’s site settings, giving you visibility into what’s working and how to optimize your site.

How to Set Up Google Analytics in Gamma

Step 1: Create a Google Analytics Account

  1. Go to Google Analytics and sign in or create an account.

  2. Create a new property (website) and follow the prompts.

  3. Copy the Measurement ID (this starts with G-XXXXXXX)

💎 Pro Tip: This ID is used inside Google Tag Manager - not in Gamma directly.

Step 2: Set Up Google Tag Manager

  1. Create a new container for your Gamma site.

  2. After the container is created, click Add a new tag.

Step 3: Create the Google Analytics Tag

  1. Name your tag (e.g., “GA4 Site Tag”).

  2. Choose Google Analytics: GA4 Configuration as the tag type.

  3. Paste your Measurement ID (from Step 1).

  4. Under Triggering, select All Pages.

  5. Click Save and Publish your tag

Step 4: Find Your GTM ID

  1. After publishing, locate your GTM ID (starts with GTM-XXXX).

    • This is not the same as your Measurement ID.

  2. Copy the GTM ID - you’ll need this for Gamma.

💎 Pro Tip: Your GTM ID is found in the top-right corner of your GTM dashboard.

Step 5: Add the GTM ID to Your Gamma Site

  1. Open the gamma site you want to track.

  2. Click the three-dot menu (…) in the upper right corner and choose Site Settings.

  3. Go to the Settings tab and scroll to the bottom.

  4. Paste your GTM ID into the Google Tag Manager ID field.

  5. Click Save.

  6. Publish your site to activate the integration.

FAQs & Common Issues

Why isn’t my Google Analytics data showing up yet?

  • It can take several hours for data to appear in GA4.

  • Make sure the GTM ID is correct and published.

  • Check that your GTM tag is configured to fire on all pages.

Can I add a Meta (Facebook) Pixel to my site?

  • Yes. Your site settings have a separate Meta Pixel field next to the Google Tag Manager field.

  • Enter your numeric Pixel ID (digits only, up to 20), then publish your site. Gamma adds Meta's standard pixel to every published page of your site.

  • If an ID isn't valid, it won't save. Clearing the field removes the pixel.

Can I add custom code or scripts to my site?

  • There's no field for custom header code or site-wide scripts. The Google Tag Manager and Meta Pixel fields are the only ways to add tracking to your whole site.

  • For anything else, like GA4, other pixels, or other third-party scripts, add it as a tag in your GTM container.

  • The Meta Pixel field only accepts a Pixel ID, so it can't be used to run your own code.

  • You need manage access to the gamma to edit these fields.

Can I embed my own HTML or JavaScript on a page?

  • In gammas made in Gamma 5, you can insert a Custom HTML block into a card. It isn't available in Gamma Classic gammas.

  • By default, the block shows HTML and CSS only, and scripts are removed.

  • Turn on Interactive to run JavaScript inside the block, for things like calculators or interactive widgets. The code runs in a sealed frame, so it can't change the rest of your gamma, open pop-ups, or redirect visitors.

  • The block only runs inside its own card, so it can't add tracking or scripts to your whole site. Use GTM for that.

What’s the difference between the Measurement ID and the GTM ID?

  • Measurement ID (starts with G-) is used inside Google Tag Manager.

  • GTM ID (starts with GTM-) is added to Gamma to enable site tracking.

Did this answer your question?