Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Google Re-Marketing Tag not working

Avatar

Level 1

Hi @all,

I have to implement the following code. When I do it with non sequential HTML it doesn´t work.

--

<script type="text/javascript">

var google_tag_params = {

ecomm_prodid: 'REPLACE_WITH_VALUE',

ecomm_pagetype: 'REPLACE_WITH_VALUE',

ecomm_totalvalue: 'REPLACE_WITH_VALUE',

};

</script>

<script type="text/javascript">

/* <![CDATA[ */

var google_conversion_id = 103726256213;

var google_custom_params = window.google_tag_params;

var google_remarketing_only = true;

/* ]]> */

</script>

<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>

<noscript>

<div style="display:inline;">

<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1005415280/?guid=ON&amp;script=0"/>
</div>

</noscript>

1. How do I have to implement?

2. How can I get the variables in this code?

On my page I have the following variables:

ecomm_prodid = '' (I don´t have it)

ecomm_pagetype = _satellite.getVar("pagePageType"),

ecomm_totalvalue = _satellite.getVar("transactionRevenue"),

Thank you!

0 Replies