> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upmind.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Supported Event Types

> Types of events tracked and reported by Upmind

Upmind supports tracking of key e-commerce and user interaction events through two main methods:

1. **Google Tag Manager (GTM)** for client-side tracking: For an easy, no-code setup that reliably tracks user interactions and e-commerce events while avoiding issues with ad blockers.

2. **Measurement Protocol** for server-side tracking: When you require backend event tracking for enhanced data accuracy and integration.

It’s important to choose one method to ensure consistent and accurate data collection.

This guide explains how to set up GA4 e-commerce tracking using **Google Tag Manager**. For **Measurement Protocol** instructions, refer to [Google's documentation](https://developers.google.com/analytics/devguides/collection/protocol/ga4/sending-events?client_type=firebase).

## **Setting up GA4 e-commerce tracking with Google Tag Manager**

You can use Google Tag Manager for client-side tracking to ensure accurate 'purchase' event recording despite ad or cookie blockers and eliminate extra script tags.

To know how to set up Google Tag Manager with Upmind, see this [guide](https://docs.upmind.com/using-upmind/reporting/how-to-set-up-google-tag-manager-with-upmind.md#/).

Upmind pushes the following recommended GA4 events:

* view\_item

* purchase

* remove\_from\_cart

* add\_payment\_info

* add\_to\_cart

* sign\_up

### **Additional Upmind custom events**

Upmind also pushes several first-party events prefixed with *upmind*, which help track specific user actions within the platform:

* upmind.logout

* [upmind.actor](http://upmind.actor)\_identified

* upmind.modal\_open

## **Configuring Google Tag Manager**

To send e-commerce transactions to `Google Analytics`, add tags and triggers in `Google Tag Manager` to fire tags for all [recommended e-commerce events](https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtm), enabling data collection for item views, cart additions, checkouts, purchases, and other actions.

**Recommended triggers to add to Google Tag Manager**

| **Triggers Name** | **Event Type** |
| - | - |
| GA4 add\_payment\_info | Custom Event |
| GA4 add\_to\_cart | Custom Event |
| GA4 login | Custom Event |
| GA4 purchase | Custom Event |
| GA4 remove\_from\_cart | Custom Event |
| GA4 sign\_up | Custom Event |
| GA4 view\_item | Custom Event |
| UPM actor\_identified | Custom Event |
| UPM logout | Custom Event |
| UPM modal\_open | Custom Event |

**Recommended tags to add to Google Tag Manager**

| **Tags Name** | **Type** | **Firing Triggers** |
| - | - | - |
| GA4 Event 'add\_payment\_info' | Google Analytics: GA4 Event | GA4 add\_payment\_info |
| GA4 Event 'add\_to\_cart' | Google Analytics: GA4 Event | GA4 add\_to\_cart |
| GA4 Event 'login' | Google Analytics: GA4 Event | GA4 login |
| GA4 Event 'purchase' | Google Analytics: GA4 Event | GA4 purchase |
| GA4 Event 'sign\_up' | Google Analytics: GA4 Event | GA4 sign\_up |
| GA4 Event 'view\_item' | Google Analytics: GA4 Event | GA4 view\_item |
| GA4 Event 'remove\_from\_cart' | Google Analytics: GA4 Event | GA4 remove\_from\_cart |
| UPM Event 'upm\_actor\_identified' | Google Analytics: GA4 Event | UPM actor\_identified |
| UPM Event 'upm\_logout' | Google Analytics: GA4 Event | UPM logout |
| UPM Event 'upm\_modal\_open' | Google Analytics: GA4 Event | UPM modal\_open |

## **Setting up e-commerce tracking and creating triggers and tags in Google Tag Manager**

### **Create GA4 property in Google Analytics**

1. Log in to `Google Analytics` with your Google account or create one if needed.

2. Click **Admin**, select **Property**, then go to `Property Details`.

![Admin > Property details](https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?fit=max\&auto=format\&n=bPO2bBzOxYQR4tYr\&q=85\&s=e30ea2e52915091406e98f1c3acf645c)

Admin > Property details

3. Enter a property name, industry category, reporting time zone, and currency.

![Enter details](https://mintcdn.com/upmind/1xguIfYUrfespmVI/images/fb/7f1419d743ff684b.png?fit=max\&auto=format\&n=1xguIfYUrfespmVI\&q=85\&s=231e83f3fac2a352759475d53ebb70e6)

Enter details

4. Click **Create**.

### **Create triggers in Google Tag Manager**

1. Log in to Google Tag Manager and select the container to connect with Google Analytics.

2. Click **Triggers** in the left menu, then **New**.

![Triggers > New](https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?fit=max\&auto=format\&n=5gi4DQpw4X76kT6T\&q=85\&s=a5b3f0404a05dd8ed8c110d9c1e87a05)

Triggers > New

Set **Trigger Configuration** to **Custom Event** and enter each recommended GA4 event as the **Event Name**.

![Custom event](https://mintcdn.com/upmind/VnCXiz5rboywDnvn/images/fb/d872ee6ab5b29872.png?fit=max\&auto=format\&n=VnCXiz5rboywDnvn\&q=85\&s=464096d24cd05524bd743e168d9b4d95)

Custom event

4. Click **Save** and repeat to add all recommended triggers, including UPM modal\_open.

### **Create tags in Google Tag Manager**

1. In the left menu, click **Tags**, then **New** to create a tag that sends data to Google Analytics for each trigger.

![Tags > New](https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?fit=max\&auto=format\&n=6knUVC8F1nK4E5CY\&q=85\&s=20f3dd13de9c8ae95f46f3bd1d9720c5)

Tags > New

2. Enter your **Google Measurement ID** and add each recommended GA4 event name individually.

![Add Google measurement ID](https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/f9f2d1a7b4dcc042.png?fit=max\&auto=format\&n=bPO2bBzOxYQR4tYr\&q=85\&s=5d7bbc449e90164391beb293e85cfe75)

Add Google measurement ID

![Add event name](https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/65b6dd3efe19fc46.png?fit=max\&auto=format\&n=uxzVUXAKtJ2bRWCI\&q=85\&s=84263dfe7602af1a38a32590ce1bced1)

Add event name

3. Under **More Settings**, check **Send E-commerce Data** and select **Data Layer** as the source to send all e-commerce details automatically.

![Configure more settings](https://mintcdn.com/upmind/VnCXiz5rboywDnvn/images/fb/dd02c0cb835c7d77.png?fit=max\&auto=format\&n=VnCXiz5rboywDnvn\&q=85\&s=01bb11c8433cb2b541eaea5c8229fe60)

Configure more settings

4. Assign the corresponding trigger for each event, such as **GA4 add\_payment\_info** for the **add\_payment\_info** event.

5. Click **Save** and repeat to add all recommended tags, including the UPM event **upm\_modal\_open**.

### **Review, test, and publish**

1. Review triggers and tags for correct configuration.

![Review triggers](https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c7a629a6f9794562.png?fit=max\&auto=format\&n=6knUVC8F1nK4E5CY\&q=85\&s=d2b101db37348107145921aac2d429d5)

Review triggers

![Review tags](https://mintcdn.com/upmind/Lh8hC132BWHpvRbz/images/fb/48d328a8d4138015.png?fit=max\&auto=format\&n=Lh8hC132BWHpvRbz\&q=85\&s=842a185a9dcf23045067c814335a6288)

Review tags

2. Use Preview mode to test, then click **Submit** to activate the tag.

![Submit](https://mintcdn.com/upmind/VnCXiz5rboywDnvn/images/fb/d43850ce9e416834.png?fit=max\&auto=format\&n=VnCXiz5rboywDnvn\&q=85\&s=5fca9d11efa53dbcd7ca8421b7aae59a)

Submit

3. Add a version name and description (e.g., GA4 Purchase Event Setup), then click **Publish**.

### **Add credentials to Upmind**

You can add [Google Tag Manager](https://docs.upmind.com/using-upmind/reporting/how-to-set-up-google-tag-manager-with-upmind.md#/) and [Google Analytics](https://docs.upmind.com/using-upmind/reporting/how-to-set-up-google-analytics-with-upmind.md#/) credentials to Upmind:

1. Log in to your Upmind account.

2. Go to **Settings** > **Analytics and Tracking**.

3. Enter your **GTM Container ID**, **Google Measurement ID**, and **API Secret**.

![Add details](https://mintcdn.com/upmind/wRuKrNY12tQZY8Rr/images/fb/365fabb70ae44788.png?fit=max\&auto=format\&n=wRuKrNY12tQZY8Rr\&q=85\&s=32666650e0e9e257a7c9435b62831ef8)

Add details

Verify tracking by making test purchases and monitoring Google Analytics event reports.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.