Expand my Community achievements bar.

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