Tutorial

How to add Google Tag Manager to your site

Preview thumbnail for a Framer blog post by orbitx.supply, visually summarizing how to integrate Google Tag Manager and GA4 tracking into Framer templates by Orbitx. Ideal for highlighting event tracking, analytics setup, and performance monitoring.
Preview thumbnail for a Framer blog post by orbitx.supply, visually summarizing how to integrate Google Tag Manager and GA4 tracking into Framer templates by Orbitx. Ideal for highlighting event tracking, analytics setup, and performance monitoring.

Track Events in Framer with Google Tag Manager & GA4 (No Code)

This comprehensive guide will walk you through integrating Google Tag Manager (GTM) and Google Analytics 4 (GA4) into your Framer website, enabling you to track user activity, clicks, and custom events — all without writing a single line of code.

Set Up Google Tag Manager

  1. Go to tagmanager.google.com

  2. Click Create Account

  3. Enter your Account Name (e.g., your team or business name)

  4. Add your Container Name (e.g., your website/project name)

  5. Select Web as the target platform

  6. Accept the terms and create your account

You’ll now see two code snippets — one for the <head> and one for the <body> of your site.

Add the Code Snippets to Framer

  1. Open your Framer project

  2. Click on Framer in the top-left

  3. Select Site Settings → General

  4. Paste:

    • The first snippet into the Head section

    • The second snippet at the start of the Body

  5. Save and publish your site


Thumbnail image for a blog post by orbitx.supply explaining how to add Google Tag Manager and Google Analytics to Framer websites. The visual represents tracking setup and integration steps for framer templates created by Orbitx.

Track All Click Events

Enable Click Triggers

  1. Go to Triggers → New

  2. Select Trigger Configuration → All Elements

  3. Name it and Save

Send Events to GA4

  1. Go to Tags → New

  2. Choose GA4 Event

  3. Paste your Measurement ID

  4. Set Event Name (e.g., all_elements)

  5. Trigger: All Elements Clicks

  6. Save and Preview

You’ll now see clicks being tracked in Debug View in Google Analytics.

Screenshot area – Debug View showing all click events

Track All Link Clicks

  1. Create a new Click Trigger → Just Links

  2. Name it and Save

  3. Preview and click links

  4. In Tag Assistant, verify that “Link Click” triggers appear

Track Specific Clicks Using CSS Classes

Enable Click Variables

  1. Go to Variables → Configure

  2. Enable all under Clicks

Now preview your site again and click the desired links. In Tag Assistant, identify a common class (e.g., framer-styles-preset-c6u029)

Set Up Specific Link Trigger

  1. Edit your Link Click Trigger

  2. Select Some Link Clicks

  3. Condition: Click Classes equals framer-styles-preset-c6u029

  4. Rename and Save

Send Click Event Details to GA4

  1. Go to Tags → New

  2. Choose GA4 Event

  3. Paste Measurement ID

  4. Add Event Name (e.g., menu_links)

  5. Add Event Parameters:

    • link_url → Click URL

    • link_text → Click Text

  6. Trigger: Select your Specific Link Click Trigger

  7. Save and Preview

You’ll now see detailed events in Debug View in GA4.

Screenshot area – GA4 showing custom event with parameters

Publish Your GTM Setup

Once everything works:

  1. Click Submit in the GTM interface

  2. Name the version (e.g., "GA4 Integration")

  3. Click Publish

Bonus: Useful Resources


Jun 23, 2025