Google Tag Manager (GTM)
Prerequisites
Step-by-Step Guide
1. Create User-Defined Variables
Login Event Variables
1.
2.
DLV - Login Method
.3.
4.
eventModel.method
.5.
6.
DLV - Login Email
, with the Data Layer Variable Name set to eventModel.email
.Signup Event Variables
1.
2.
DLV - Signup Method
.3.
4.
eventModel.method
.5.
6.
DLV - Signup Email
, with the Data Layer Variable Name set to eventModel.email
.Checkout Event Variables
1.
2.
DLV - Checkout Currency
.3.
4.
eventModel.currency
.5.
6.
DLV - Checkout Value
with Data Layer Variable Name eventModel.value
.DLV - Checkout Coupon
with Data Layer Variable Name eventModel.coupon
.DLV - Checkout Items
with Data Layer Variable Name eventModel.items
.Payment Info Event Variables
1.
DLV - Payment Currency
with Data Layer Variable Name eventModel.currency
.DLV - Payment Value
with Data Layer Variable Name eventModel.value
.DLV - Payment Coupon
with Data Layer Variable Name eventModel.coupon
.DLV - Payment Items
with Data Layer Variable Name eventModel.items
.Purchase Event Variables
1.
DLV - Purchase Transaction ID
with Data Layer Variable Name eventModel.transaction_id
.DLV - Purchase Currency
with Data Layer Variable Name eventModel.currency
.DLV - Purchase Value
with Data Layer Variable Name eventModel.value
.DLV - Purchase Coupon
with Data Layer Variable Name eventModel.coupon
.DLV - Purchase Items
with Data Layer Variable Name eventModel.items
.2. Set Up Event Triggers
Login Event
1.
2.
3.
4.
login
.5.
Signup Event
1.
2.
3.
4.
sign_up
.5.
Begin Checkout Event
1.
2.
3.
4.
begin_checkout
.5.
Add Payment Info Event
1.
2.
3.
4.
add_payment_info
.5.
Purchase Event
1.
2.
3.
4.
purchase
.5.
3. Create Tags to Capture Events
Login Event Tag
1.
2.
3.
4.
5.
method
: {{DLV - Login Method}}
email
: {{DLV - Login Email}}
6.
7.
Signup Event Tag
1.
2.
3.
4.
5.
method
: {{DLV - Signup Method}}
email
: {{DLV - Signup Email}}
6.
7.
Begin Checkout Event Tag
1.
2.
3.
4.
5.
currency
: {{DLV - Checkout Currency}}
value
: {{DLV - Checkout Value}}
coupon
: {{DLV - Checkout Coupon}}
items
: {{DLV - Checkout Items}}
6.
7.
Add Payment Info Event Tag
1.
2.
3.
4.
5.
currency
: {{DLV - Payment Currency}}
value
: {{DLV - Payment Value}}
coupon
: {{DLV - Payment Coupon}}
items
: {{DLV - Payment Items}}
6.
7.
Purchase Event Tag
1.
2.
3.
4.
5.
transaction_id
: {{DLV - Purchase Transaction ID}}
currency
: {{DLV - Purchase Currency}}
value
: {{DLV - Purchase Value}}
coupon
: {{DLV - Purchase Coupon}}
items
: {{DLV - Purchase Items}}
6.
7.
Final Steps
1.
2.
user interactions effectively.