Skip to main content

Google Tag Manager (GTM) Cross-domain and E-Commerce Setup

Learn how to set up Google Tag Manager (GTM) with Dash, including configuring cross-domain tracking, connecting your GTM Container ID, and enabling e-commerce tracking through your Google Analytics account.

Written by Angel Horowitz

📝 Overview

Google Tag Manager (GTM) is a free tool from Google that allows you to manage and deploy multiple tracking tags from a single container, without needing to modify your website code directly. Supported tags include Google Analytics, advertising pixels, and other third-party scripts.

While Dash supports a direct Google Analytics 4 (GA4) connection using just your Measurement ID, GTM is the recommended solution when you need to:

  • Run multiple analytics tools or tracking tags simultaneously

  • Configure cross-domain tracking across your website and Customer Portal

  • Track e-commerce transactions with greater flexibility

✍️ Note: GTM works alongside Google Analytics and does not replace it. You will still need an active GA4 property before completing the steps in this article. If you have not yet set up Google Analytics, start there first.


🛠️ Setup

🔓 Enabling E-Commerce in Google Analytics

Click the arrow to learn how to enable e-commerce tracking in Google Analytics

Before configuring GTM, make sure e-commerce tracking is enabled in your Google Analytics account. This allows GA4 to receive and display transaction data sent through GTM.

Full instructions for enabling e-commerce tracking are available in the Google Analytics setup section of this article.

⚙️ Setting Up Google Tag Manager

Click the arrow to learn how to configure Google Tag Manager (GTM)

Complete the following steps in your Google Tag Manager account at https://tagmanager.google.com/

  1. Click Tags in the side menu.

    User-added image

  2. Click the edit icon on an existing tag, or create a new one.

    User-added image

  3. Choose Google Analytics: GA4 Configuration as the tag type.

  4. Choose Transaction from the Track Type dropdown.

  5. Choose New Variable from the Google Analytics Settings dropdown, then enter your GA4 Measurement ID (formatted as G-XXXXXXXXXX).

  6. Expand More Settings, then expand Cross-Domain Tracking. Enter the domains you want to track across (for example, your main website and your Customer Portal URL), then save.

  7. Click the edit icon in the Triggering section.

  8. Check the Transaction complete option.

🏷️ Adding Your GTM ID to Dash

Click the arrow to learn how to add your GTM Container ID to Dash

  1. Navigate to the Integrations & Add-ons page. You can access this from the Admin dropdown menu or by typing "Integrations & Add-ons" into the Global Search Box.

  2. From the Integrations tab, locate the Google Tag Manager tile and click the Get Started button.

  3. Toggle Enable Google Tag Manager on.

  4. Copy your GTM Container ID from Google Tag Manager (formatted as GTM-XXXXXXX) and paste it into the GTM Container ID field.

  5. Click Save Settings.

Did this answer your question?