cancel
Showing results for 
Search instead for 
Did you mean: 

How can i add Google Ads Tracking code in Success Page?

How can i add Google Ads Tracking code in Success Page?

<!-- Event snippet for Final Page conversion page -->
<script>
  wtag('event', 'conversion', {
      'send_to': 'AW-23232323223232/23232323233434343443',
      'value': 0.0,
      'currency': 'INR',
      'transaction_id': ''
  });
</script>

 

How can i add in success page?

6 REPLIES 6

Re: How can i add Google Ads Tracking code in Success Page?

Hello @Aveeva 

 

In your case you need to use checkout_onepage_success.xml layout file. In the layout file you need to specify where you want to add your custom script using referenceContainer or referenceBlock.

For more details please follow below link:

https://magento.stackexchange.com/questions/136730/call-custom-phtml-on-success-page-without-overrid...

Manish Mittal
https://www.manishmittal.com/

Re: How can i add Google Ads Tracking code in Success Page?

Hello @Aveeva,

As you are using Magento 1.9 so please refer the link https://magento.stackexchange.com/questions/285753/how-can-i-add-google-ads-tracking-code-in-success...

I hope this will work for you, if still you face any issue please let me know.

If it helps you, please accept it as solution and give kudos.

Regards.

Re: How can i add Google Ads Tracking code in Success Page?

@Sarvagya Pandey  Hi, thank you, i solved this. I hope you remember custom module for extra fees, actually i followed everything based on your message, still not working, i just send my workout,. could you pls help me 

Re: How can i add Google Ads Tracking code in Success Page?

I remember that, allow me some time I will definitely help you
Regards

Re: How can i add Google Ads Tracking code in Success Page?

Observer class not triggered, how can i solve the error?

Re: How can i add Google Ads Tracking code in Success Page?

If i run below line in app/code/local/Voronoy/ExtraFee/Model/Quote/Address/Total/Fee/Rule.php

 Mage::log("ExtraFeesWebsite -".$current_website." website checking part");

return log message Smiley Happy

same line if i put

in app/code/local/Gta/ExtraFeesRemove/Model/Quote/AddressTotal/Fee/Rule.php

 

no log message in system.log file