Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

How to add Google Remarketing code on site?

To add google remarketing code on your site, go to any page of your site through design theme. Following are the steps:

  1. Go to Design theme in StoreHippo Admin Panel.
  2. Click on HTML > Show all widgets > header.
  3. Here you will need to modify the provided code according to the code which you get from Google AdWords.

The sample which you get from Google AdWords Remarketing:

</script>
/* <![CDATA[ */
var google_conversion_id = 83xxxxx0;
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="//www.googleadservices.com/pagead/conversion/837317380/?label=yi7fCMmqgnQQhOahjwM&guid=ON&script=0"/>
</div>
</noscript>


There are two types of modification that are required to be made. Here are the samples which you have to put on site with modifications:

  • Modify the googleadservices code script and script must be loaded asynchronously

Present Code:

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

 

Modified code: 

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

 

  • Modify the /* <![CDATA[ */  code script with a trackconversion function

Present Code:

</script>
/* <![CDATA[ */
var google_conversion_id = 83xxxxx0;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>


Modified Code: 

<script type="text/javascript">
    setTimeout(function () {
        /* <![CDATA[ */
        window.google_trackConversion({
            google_conversion_id: 83xxxxx0,
            google_custom_params: " window.google_tag_params",
            google_remarketing_only: true
        });
        /* ]]> */ 
    })
</script>
2019-03-05T11:11:16.809Z