Skip to content

GTM Variable template to generate GA4 purchase custom object from standard ecommerce data layer

License

Notifications You must be signed in to change notification settings

gtm-templates-praba/ga4-purchase-custom-obj-from-standard-ecom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTM Variable Template - GA4 Purchase Custom Object from Standard Ecommerce DataLayer

This template variable would convert the classic/standard e-commerce transaction data layer into a Custom Object that can be used in the GA4 event tag to send the purchase event.

Screenshot

How to use?

Creating the variable

Screenshot

  1. Once the template is downloaded from the Gallery (or imported using this repository), go to Variables > New > GA4 Purchase Custom Object from Standard Ecommerce DataLayer
  2. Enter the Currency code manually or reference it to a variable (currency is a required parameter in GA4)
  3. Give a name to the variable & Save

GA4 Event Tag

Screenshot

  1. Open the GA4 purchase event tag & go to More Settings
  2. Expand Ecommerce
  3. Check Send Ecommerce data
  4. Select Custom Object from the Data Source drop down
  5. Select the variable from the Ecommerce Object drop down

About

GTM Variable template to generate GA4 purchase custom object from standard ecommerce data layer

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages