---
title: Setting Up GA4 Events in GTM
slug: setting-up-ga4-events-in-gtm
docTags: 
createdAt: 2026-02-13T20:02:08.552Z
---

# Overview

This guide walks you through importing Storagely’s prebuilt GTM event container and configuring it so events are properly tracked in Google Analytics from actions taken on your website.

## Import the Container File

- Download this .JSON file [HERE](https://drive.google.com/drive/folders/14MkZDMZUr93q_Tn_ejv1feSB5k4_Hhz-?usp=sharing)
- Login to <u>[Google Tag Manager](https://tagmanager.google.com/)</u>
- Click to open GTM container

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/EpsrZorsenWae76Hw7oim_.blob)

- Click on “**Admin**” in the top navigation

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/QUkjQk_8mI8ciRu46Iixn_.blob)

- Click on ‘**Import Container**’ to import the downloaded .JSON file

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/ocHkFcNfRE6HKL9vp-rdB_.blob)

- Click on ‘**Choose container file**’ and select the downloaded .JSON file from your downloads folder

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/ebSU3Ae0v6XiXNJmVG2S8_.blob)

### Select Workspace

Choose where the tags should live:

- **Existing Workspace** – typically "Default Workspace" (recommended for most users)
- **New Workspace** – use if you want the tags separated for testing

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/O5u8XJ0cZvufIOWkWKtqe_.blob)

- Click **Add to workspace&#x20;**&#x61;t the bottom of the page.

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/7OUIFYjfK1cONnxYUwlyY_.blob)

## Configure Variables

1. Go to **Variables**
2. Open **GA4 Measurement ID**
3. Enter your Google Analytics 4 Measurement ID

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/04T7_8xfpzppcSwcc4jgo_.blob)

:::hint{type="info"}
To find the GA4 measurement ID: **[Follow this article](https://support.google.com/analytics/answer/12270356?hl=en)**
:::

## Update Trigger URLs

1. Open **Triggers**
2. Select '**All Internal Links'**
3. Click **Trigger Configuration**
4. Update the top \{\{Click URL}} field with your root domain:
   - Example: [https://yourdomain.com](https://yourdomain.com)

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/UZeb4cjpVa_uSJkq5WCfQ_.blob)

## Preview and Debug New GA4 Tag

- After adding the Event tags, click the **Preview** button in the top right.

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/96kLo5ulJXt91uGoUhGra_screenshot-2026-02-13-at-125026apm.png)

- Click **Connect**. The website will open in a new Tab.

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/5t5FXV2mr4zlc6CRTTrOm_.blob)

- Navigate to the website and click the buttons to trigger the events.
- Click back to the Google Tag Manager debug panel and view the Tags Fired section. You should see the event name of the tag you just tested.

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/AaqkK8_RIcGhbe2h_AwKE_screenshot-2026-02-13-at-125421apm.png)

## Publish Changes

- After previewing the website and testing, the new event is firing correctly. Go back to Google Tag Manager and click Submit.

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/1RP-qNf7VGo4Skp74Kvx8_screenshot-2026-02-13-at-125603apm.png)

- Add a descriptive name and/or detailed description of the changes. Click **Publish**.

## Mark the Event as a Conversion (Key Event) in GA4

Events may take up to 24 hours to appear in GA4

- Log in to GA4
- Click **Admin**
- Select **Data Display → Key Events**
- Toggle the event ON to mark it as a conversion

![](https://api.archbee.com/api/optimize/_fbQ1jk8y-6t-s-DYY8Bo/krF7R-nPYYQGzcrLLYNAv_screenshot-2026-02-13-at-125956apm.png)

## Best Practices

- Ensure the Measurement ID matches your GA4 property
- Confirm that the domain in triggers matches your site exactly
- Always use Preview mode before publishing
- Wait 24 hours before confirming events in GA4 reporting

*As always, if you have any questions during this process, our Customer Success Team is here to help. The best way to reach us is by submitting a support ticket.*

**[Submit a Ticket](https://d1s7s.share.hsforms.com/297GkKIsiTSmDgSKUYT9s2g)**

