A
A
Arsuk2015-07-23 12:58:36
Google
Arsuk, 2015-07-23 12:58:36

How to set up dynamic remarketing in Google Tag Manager (not AdWords)?

In order to place dynamic remarketing tags through Google Tag Manager, you need to "pull up" data from the site. The code for this is:
var google_tag_params = {
'ecomm_pagetype': 'purchase', //set the pagetype value
'ecomm_pcat': ['electronics', 'books'], // product category
'ecomm_prodid': ['123A', 'H456'], // sku
'ecomm_pname': ['Nexus','Router'], // product name
'ecomm_pvalue': [99, 19.99], // product value
'ecomm_totalvalue': '118.99' // total value
};

//Here everything is more or less clear
Next, place on the page:
dataLayer.
'google_tag_params': window.google_tag_params
});

Next, in the GTM interface, we create a custom HTML tag, where we place the remarketing script.
The question is : How to pass values ​​from google_tag_params and dataLayer to remarketing script?
Those. how to hook for code:
Products: [ {id: "ProductID" ,price:"24.90",qty:2},
TransactionReference: "[TransactionID]",
TransactionAmount: "[Transaction Amount]"

instead of ProductID, TransactionID etc. given variables in the code? Just assign variable names from google_tag_params?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artyom Tsyplakov, 2015-07-23
@grimich

Read the help carefully. All variables are passed through the DataLayer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question