Page 1 of 1
Adwords Tracking
Posted: Tue Oct 29, 2013 10:10 am
by kwikstand
Does anybody know an easy way to ad Adwords tracking code to the receipt page?
Re: Adwords Tracking
Posted: Tue Oct 29, 2013 3:44 pm
by triplw
I made a user control similar to ~/ConLib/GoogleAnalyticsWidget.ascx and call it from the receipt page.
Re: Adwords Tracking
Posted: Tue Oct 29, 2013 4:49 pm
by kwikstand
Thanks, but I don't really know how to do that.
Why can't it be as simple as adding the code to the footer? There is no way that I can see to do that. "Layouts doesn't even have the ability to create a custom footer or assign it to the receipts page. It is restricted to Categories, Product and Webpages.
Why is it not possible to add custom controls to footers and headers?
Re: Adwords Tracking
Posted: Wed Oct 30, 2013 5:44 am
by jmestep
You can add it to the footer in the ConLib/StoreFooter. I'm not sure why Able doesn't allow you to add conlibs in the admin interface though. If you don't want to make a new conlib, you can add the code to the ConLib/GoogleAnalyticsWidget so it will all be in one place and the variables for order number, order amount, etc are already there.
Re: Adwords Tracking
Posted: Wed Oct 30, 2013 6:12 am
by kwikstand
The Adwords code needs to be on the Receipt page only. Otherwise it will record every page view as a sale.
It is different from the Analytics code
Re: Adwords Tracking
Posted: Thu Oct 31, 2013 4:53 am
by jmestep
I do understand that. There is code in the GoogleAnalyticsWidget that shows the ecommerce part of their tracking on the receipt page only. If you don't want to do that, you can put the code at the bottom of the receipt page.
Re: Adwords Tracking
Posted: Thu Oct 31, 2013 6:06 am
by kwikstand
OK, but How do you put the code at the bottom? I tried once and broke the page.