Google Remarketing

04.10.2017 13:02
#1
mscgroup
Joomshopping forum user no avatar
Name: Enza
29.05.2017
Posts: 31
Quote
Google Remarketing

Hello, I contacted the google adwords help center to set up a dynamic type campaign (view articles in banners).
As they ask the script to include product id and price, I wonder if you have some extension already made,

They ask me to include this code in each article

<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: "SOSTITUIRE_CON_VALORE_STRINGA", (here is the product id)
ecomm_pagetype: "SOSTITUIRE_CON_VALORE_STRINGA",
ecomm_totalvalue: "SOSTITUIRE_CON_VALORE_STRINGA"(here the price)
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxx;
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/xxxxxxxx/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>




Joomla: Joomla! 3.8.0 Stable
JoomShopping: Version 4.16.2
PHP: PHP 7.0.24
MySQL: MySQLi 5.6.36-82.1-log
Website Url: https://iprofumissimi.com
 
04.10.2017 19:58
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Google Remarketing

edit file:
components\com_jshopping\templates\default\product\product_default.php

<script type="text/javascript">
var google_tag_params = {
ecomm_prodid: "<?php print $this->product->product_id?>",
ecomm_pagetype: "SOSTITUIRE_CON_VALORE_STRINGA",
ecomm_totalvalue: "<?php print round($this->product->getPriceCalculate(), 2)?>"
};
</script>
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = xxxxxxxx;
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/xxxxxxxx/?value=0&amp;guid=ON&amp;script=0"/>
</div>
</noscript>


Last change: 04.10.2017 20:00
 
05.10.2017 09:12
#3
mscgroup
Joomshopping forum user no avatar
Name: Enza
29.05.2017
Posts: 31
Quote
Aw: Google Remarketing

Thank you very much for the availability.
if I may want to ask you one last thing, if you have the voice ( ecomm_pagetype: ) I want to add the product name, could you give me the string?
Thanks again and good work

 
05.10.2017 09:21
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Google Remarketing

ecomm_pagetype: "<?php print $this->product->name?>",


Last change: 05.10.2017 09:21
 
05.10.2017 19:48
#5
mscgroup
Joomshopping forum user no avatar
Name: Enza
29.05.2017
Posts: 31
Quote
Aw: Google Remarketing

I tried it and it worked perfectly. Thanks again and good work

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.