> ## 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 [<u>Google's documentation</u>](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 [<u>guide</u>](/using-upmind/reporting/how-to-set-up-google-tag-manager-with-upmind#/).

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 [<u>recommended e-commerce events</u>](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`.

<Frame caption="Admin > Property details">
  <img src="https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=e30ea2e52915091406e98f1c3acf645c" alt="Admin > Property details" data-og-width="1260" width="1260" data-og-height="914" height="914" data-path="images/fb/faf6f661654bb221.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?w=280&fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=f9907e3d4481e1144f0c308b4996025e 280w, https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?w=560&fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=1fad224c25c8d81240bca1571953f3b7 560w, https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?w=840&fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=ecb1cf5aa90849f013e0b386df0d5178 840w, https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?w=1100&fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=92792491b781623781598e6358182498 1100w, https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?w=1650&fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=66187a10ff7855b6717896900c5c8d86 1650w, https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/faf6f661654bb221.png?w=2500&fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=b45a5f98836541561906224798af2b3d 2500w" />
</Frame>

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

<Frame caption="Enter details">
  <img src="https://mintcdn.com/upmind/1xguIfYUrfespmVI/images/fb/7f1419d743ff684b.png?fit=max&auto=format&n=1xguIfYUrfespmVI&q=85&s=231e83f3fac2a352759475d53ebb70e6" alt="Enter details" width="1306" height="476" data-path="images/fb/7f1419d743ff684b.png" />
</Frame>

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**.

<Frame caption="Triggers > New">
  <img src="https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=a5b3f0404a05dd8ed8c110d9c1e87a05" alt="Triggers > New" data-og-width="1664" width="1664" data-og-height="364" height="364" data-path="images/fb/b91271a92800319c.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?w=280&fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=c2c971e1628bd7bdc1c8f48457deccb1 280w, https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?w=560&fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=706afc6bfe8c5316e185da28ee07d124 560w, https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?w=840&fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=f37ac6520cda16a3790e8e3f4d28318b 840w, https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?w=1100&fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=3f65384f0db7bdf07462f4b9ad1da5fb 1100w, https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?w=1650&fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=49196c910f03bdcba78fa8b1b32459f9 1650w, https://mintcdn.com/upmind/5gi4DQpw4X76kT6T/images/fb/b91271a92800319c.png?w=2500&fit=max&auto=format&n=5gi4DQpw4X76kT6T&q=85&s=9ee5c8325e795af8206574c7687695dc 2500w" />
</Frame>

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

<Frame caption="Custom event">
  <img src="https://mintcdn.com/upmind/VnCXiz5rboywDnvn/images/fb/d872ee6ab5b29872.png?fit=max&auto=format&n=VnCXiz5rboywDnvn&q=85&s=464096d24cd05524bd743e168d9b4d95" alt="Custom event" width="766" height="920" data-path="images/fb/d872ee6ab5b29872.png" />
</Frame>

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.

<Frame caption="Tags > New">
  <img src="https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=20f3dd13de9c8ae95f46f3bd1d9720c5" alt="Tags > New" data-og-width="1582" width="1582" data-og-height="344" height="344" data-path="images/fb/c755537f41ea3a78.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?w=280&fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=dd072f27be490f7e97ff4d106b8afecb 280w, https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?w=560&fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=28bf33c477f397865755b0f69b9ced30 560w, https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?w=840&fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=13b7194464dada1f81b8f95e53dca417 840w, https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?w=1100&fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=fa27259c1611dfe982cdf0a39f70b482 1100w, https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?w=1650&fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=02f7f942f71e9074ad7e3f6cf4d57bd6 1650w, https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c755537f41ea3a78.png?w=2500&fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=f27836fe635b1a9391714025e55da67f 2500w" />
</Frame>

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

<Frame caption="Add Google measurement ID">
  <img src="https://mintcdn.com/upmind/bPO2bBzOxYQR4tYr/images/fb/f9f2d1a7b4dcc042.png?fit=max&auto=format&n=bPO2bBzOxYQR4tYr&q=85&s=5d7bbc449e90164391beb293e85cfe75" alt="Add Google measurement ID" width="1120" height="446" data-path="images/fb/f9f2d1a7b4dcc042.png" />
</Frame>

<Frame caption="Add event name">
  <img src="https://mintcdn.com/upmind/uxzVUXAKtJ2bRWCI/images/fb/65b6dd3efe19fc46.png?fit=max&auto=format&n=uxzVUXAKtJ2bRWCI&q=85&s=84263dfe7602af1a38a32590ce1bced1" alt="Add event name" width="1462" height="544" data-path="images/fb/65b6dd3efe19fc46.png" />
</Frame>

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

<Frame caption="Configure more settings">
  <img src="https://mintcdn.com/upmind/VnCXiz5rboywDnvn/images/fb/dd02c0cb835c7d77.png?fit=max&auto=format&n=VnCXiz5rboywDnvn&q=85&s=01bb11c8433cb2b541eaea5c8229fe60" alt="Configure more settings" width="1564" height="484" data-path="images/fb/dd02c0cb835c7d77.png" />
</Frame>

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.

<Frame caption="Review triggers">
  <img src="https://mintcdn.com/upmind/6knUVC8F1nK4E5CY/images/fb/c7a629a6f9794562.png?fit=max&auto=format&n=6knUVC8F1nK4E5CY&q=85&s=d2b101db37348107145921aac2d429d5" alt="Review triggers" width="1348" height="690" data-path="images/fb/c7a629a6f9794562.png" />
</Frame>

<Frame caption="Review tags">
  <img src="https://mintcdn.com/upmind/Lh8hC132BWHpvRbz/images/fb/48d328a8d4138015.png?fit=max&auto=format&n=Lh8hC132BWHpvRbz&q=85&s=842a185a9dcf23045067c814335a6288" alt="Review tags" width="1270" height="834" data-path="images/fb/48d328a8d4138015.png" />
</Frame>

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

<Frame caption="Submit">
  <img src="https://mintcdn.com/upmind/VnCXiz5rboywDnvn/images/fb/d43850ce9e416834.png?fit=max&auto=format&n=VnCXiz5rboywDnvn&q=85&s=5fca9d11efa53dbcd7ca8421b7aae59a" alt="Submit" width="766" height="308" data-path="images/fb/d43850ce9e416834.png" />
</Frame>

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

### **Add credentials to Upmind**

You can add [<u>Google Tag Manager</u>](/using-upmind/reporting/how-to-set-up-google-tag-manager-with-upmind#/) and [<u>Google Analytics</u>](/using-upmind/reporting/how-to-set-up-google-analytics-with-upmind#/) 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**.

<Frame caption="Add details">
  <img src="https://mintcdn.com/upmind/wRuKrNY12tQZY8Rr/images/fb/365fabb70ae44788.png?fit=max&auto=format&n=wRuKrNY12tQZY8Rr&q=85&s=32666650e0e9e257a7c9435b62831ef8" alt="Add details" width="1224" height="656" data-path="images/fb/365fabb70ae44788.png" />
</Frame>

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