---
title: Google Analytics Ecommerce events import with Google Tag Manager
description: "## Step by Step Instructions This Google Tag Manager container setup instructions works with DeshiCommerce Merchant Stores. Once you have completed all the steps, your Google Analytics 4 account will automatically receive e-commerce events such as purchase, add to cart…"
url: "https://deshicommerce.com/tutorial/google-analytics-ecommerce-events-import-with-google-tag-manager/"
updated: "2025-05-08"
category: Settings
---

# Google Analytics Ecommerce events import with Google Tag Manager

## Step by Step Instructions

This Google Tag Manager container setup instructions works with DeshiCommerce Merchant Stores. Once you have completed all the steps, your Google Analytics 4 account will automatically receive e-commerce events such as purchase, add to cart etc. 

### **Step 1: Sign in/Sign up with[Google Analytics](https://analytics.google.com/)**

If you don’t have a Google Analytics account or property, then go to **Admin**and click on the **Create** button and complete the steps to create a new Google Analytics Account or Property.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image5.png)

If you already have a Google Analytics account or property, then go to **Admin>Data Collection and Modification>Data Streams** and click on the **Data Stream name**.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image2.png)

Copy the Measurement ID and save it in a note. You will need it for an upcoming step. 

### **Step 2: Download the Pre-Configured Google Tag Manager Container File**

Download the [DeshiCommerce merchant store preconfigured Google Tag Manager Container file](https://deshicommerce.com/wp-content/uploads/2025/05/GTM-DeshiCommerce.json_.zip) and Unzip it.

### **Step 3: Sign in/Sign up with Google Tag Manager **

Sign in or if you don't have an existing account then Create a new [Google Tag Manager](https://tagmanager.google.com/) account. Copy the container ID.

![](https://deshicommerce.com/wp-content/uploads/2025/05/Screenshot-2025-05-08-163352.png)

### **Step 4: Add the container ID in your DeshiCommece merchant pannel**

Log in to your DeshiCommerce merchant pannel and go to Online Store> Preferences

Click **Edit** and Paste the container ID under Google Tag Manager and save.

![](https://deshicommerce.com/wp-content/uploads/2025/05/Screenshot-2025-05-08-165327.png)

### **Step 5: Go back to the Google Tag Manager Admin tab and click on the import container**

### ![](https://deshicommerce.com/wp-content/uploads/2025/05/image9.png)

### **Step 6: Import the container**

In most cases, we suggest selecting 'Merge' and ‘overwrite conflicting tags, triggers and variables’ when you import the container. If in doubt, then we recommend creating a demo GTM container for testing so that you don't accidentally modify anything.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image1.png)

After importing click on the **Add to workspace** button.

![](https://deshicommerce.com/wp-content/uploads/2025/05/Screenshot_5.png)

### **Step 7: Edit the variable named ‘Google Analytics Measurement ID’**

Go to the Variables menu under **Workspace** Tab.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image8.png)

This variable’s' Value' is the measurement ID from your Google Analytics 4 property we have saved previously. Copy and paste the measurement ID from your note.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image3.png)

Click on the **Save** button to save the variable

Once you've saved the variable, we recommend testing the changes to ensure everything works correctly.

### **Step 8: Preview the container to test**

Once you've saved the variable, we recommend testing the changes to ensure everything works correctly.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image4.png)

### **Step 9: Publish the container**

Click on the top right “Submit” button, Publish and Create a new version of your container.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image7.png)

After successfully importing and publishing the container, please wait 48 hours to receive e-commerce events in your Google Analytics.

![](https://deshicommerce.com/wp-content/uploads/2025/05/image6.png)
