<img src="abc.png" />
    
call to replace anchor tags contains '/admin' in href

How to add Google Conversion code on site?

To add google conversion code on your site, go to order confirmation 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.
  3. Click on Order Confirmation.
  4. 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:

<script>
/* <![CDATA[ */
var google_conversion_id = 83xxxxx0;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "yi7fCMmqgnQQhOahjwM";
var google_remarketing_only = false;
/* ]]> */
</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_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "yi7xxxxxxxxxxjwM";
var google_remarketing_only = false;
/* ]]> */
</script>


Modified Code: 

<script type="text/javascript">
    setTimeout(function () {
        /* <![CDATA[ */
        window.google_trackConversion({
            google_conversion_id: 123456789,
            google_conversion_language: "your label here",
            google_conversion_format: "3",
            google_conversion_color: "ffffff",
            google_conversion_label: "yi7xxxxxxxxxxjwM",
            google_remarketing_only: false
        });
        /* ]]> */
    })
</script>

 

2018-10-17T10:49:08.781Z