Recommended GTM tags, triggers and variables for a new partner

    This is a list of Tags, Triggers, and Variables recommended for a new partner to add to their container.
    This is just a basic recommendation, additional tags, triggers, and variables can be added to track and send more events and data to GA4.

    Tag

    Variables

    (User-Defined Variables)

    Image

    GA4 Configuration

    ·   Google Tag

    ·   Tag ID = GA4 Data Stream Measurement ID

    ·   Configuration Parameter:

    o   cookie_domain = auto

     

     

    Trigger

    All Pages

     

    None

    GTM 01 .png

    gtm 2 .png

    GA4 Event - Login

    ·   Event Name: login

    ·   Measurement ID = GA4 Data Stream Measurement ID

    ·   Event Parameters

    o   customer_id{{Customer ID}}

    o   hashed_email → {{Customer Hashed Email}}

     

    Trigger

    Custom Login Event

    ·   Event Name: Login

    o   Use regex matching

    ·   Fires on: All Custom Events

    Customer ID

    ·   Data Layer Variable Name: customerID

    Customer Hashed Email

    ·   Data Layer Variable Name: hashedEmail
     

    GA4 Event - Logout

    ·   Event Name: logout

    ·   Measurement ID = GA4 Data Stream Measurement ID

     

    Trigger

    Custom Logout Event

    ·   Event Name: Logout

    o   Use regex matching

    ·   Fires on: All Custom Events

    None  

    GA4 Event - Sign Up

    ·   Event Name: sign_up

    ·   Measurement ID = GA4 Data Stream Measurement ID

    ·   Event Parameters

    o   customer_id{{Customer ID}}

    o   hashed_email{{Customer Hashed Email}}

     

    Trigger

    Custom Signup Event

    ·   Event Name: SignUp

    o   Use regex matching

    ·   Fires on: All Custom Events 

    Customer ID

    ·   Data Layer Variable Name: customerID

    Customer Hashed Email

    ·   Data Layer Variable Name: hashedEmail

    GTM 3.png

    GTM4 .png

    GA4 Event - First Purchase Completed

    ·   Event Name: First_Purchase_Completed

    ·   Measurement ID = GA4 Data Stream Measurement ID

    ·   Event Parameters

    o   transaction_id{{Transaction ID}}

    o   value{{Transaction Total}}

    o   currency{{Currency}}

     

    Trigger

    Custom First Purchase Event

    ·   Event Name: FirstSale

    o   Use regex matching

    ·   Fires on: All Custom Events

    Transaction ID

    ·   Data Layer Variable Name: transactionId

    Transaction Total

    ·   Data Layer Variable Name: transactionTotal

    Currency

    ·   Data Layer Variable Name: transactionCurrency

    GTM 5 .png

    GTM 6 .png

    GA4 Event - Purchase

    ·   Event Name: purchase

    ·   Measurement ID = GA4 Data Stream Measurement ID

    ·   Event Parameters

    o   transaction_id{{Transaction ID}}

    o   value{{Transaction Total}}

    o   currency{{Currency}}

    o   items{{Transaction Products}}

     

    Trigger

    Custom Transaction Event

    ·   Event Name: Transaction

    o   Use regex matching

    ·   Fires on: All Custom Events

    Transaction ID

    ·   Data Layer Variable Name: transactionId

    Transaction Total

    ·   Data Layer Variable Name: transactionTotal

    Currency

    ·   Data Layer Variable Name: transactionCurrency

    Transaction Products

    ·   Data Layer Variable Name: transactionProducts

    GTM 7 .png

    GTM 8.png

    GA4 Event - Page View

    ·   Event Name: PageView

    ·   Measurement ID = GA4 Data Stream Measurement ID

    ·   Event Parameters

    o   path{{Path}}

    o   screenName{{Screen Name}}

    o   title{{Title}}

    o   url{{URL}}

     

    Trigger

    Custom Page View Event

    ·   Event Name: PageView

    o   Use regex matching

    ·   Fires on: All Custom Events

     

    Path

    ·   Data Layer Variable Name: path

    Screen Name

    ·   Data Layer Variable Name: screenName

    Title

    ·   Data Layer Variable Name: title

    URL

    ·   Data Layer Variable Name: url

    GTM 09 .png

    GTM 10 .png

    GA – All Pages

     

    GTM 11 .png

    GTM 12.png

     

    GA4 - Purchase

    Tag name

    GA4 - Purchase

    Tag configuration

    Google Analytics: GA4 Event

    Tag configuration

    • Event Name:
      • purchase
    • Measurement ID:
      • GA4 Data Stream Measurement ID

     

    Event parameters

    Event values

    transaction_id {{Transaction ID}}
    value {{Transaction Total}}
    currency {{Currency}}
    items

    {{Transaction Products}}

    Trigger

     

     

     
    Was this article helpful?
    0 out of 0 found this helpful