Adwords Tracking


https://forum.kartris.com/Topic6439.aspx
Print Topic | Close Window

By Garry Spight - Mon 18 Apr 2016
Hi I'm trying to enable adwords tracking on my store and cant for the life of me find where to put the code.

I got this from google but need to find where to put it in the backend.

Could someone advise where this needes to go

Many thanks

, please add the below code in the thank you page ( http://www.mellcrest.com/Checkout.aspx?new=y) just above the closing body ( </body> ) tag.

<img height="1" width="1"style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/1007205529/?label=lrAYCLmu42UQmfmi4AM&amp;guid=ON&amp;script=0"/>

Note : Please ensure to have a back-up of the websitebefore making any changes.

By Paul - Fri 22 Apr 2016
Best place would be the .master page file that your site skin is using, i.e. in default kartris install would be

/Skins/Kartris/Template.master

This is the template that the front end uses to build all front end pages, so adding it here, it should appear on all front end pages.
By landron - Wed 18 May 2016
I need to add two different conversion scripts from Google Adwords; one when anything goes into the shopping cart and the other after a successful checkout. As there doesn't seem to be a typical "thank You" page that the user sees after checking out, I'm lost. Having the script appear on every page doesn't help for obvious reasons. I appreciate any assistance.
By Paul - Thu 19 May 2016
The page displayed to users after checking out should be the checkoutcomplete.aspx page in the root of the web. However, this does somewhat depend on the payment gateway redirecting people back to your store. Some like Paypal aren't very good at that, at best they apply a 5 second delay and it's possible people might close after a payment but before they're returned to the site.

In an ideal world, sale conversion code would run at the same time the order was paid and notified to the store (the callback). Unfortunately in most cases, this callback page is called by the payment gateway's servers while the user is still on the payment gateway, so it's not possible to run clientside code in there (the code would just be sent to the payment gateway's server which would not run it). So the best option we have is to run the code right as the user returns from a payment gateway.
By landron - Thu 19 May 2016
Thank you for the response and that makes perfect sense. The /CheckoutComplete page basically is a "thank you" page. For whatever reason though, the site I'm working on doesn't show that page after checkout is completed. The Checkout Complete - Transaction Was Successful message appears on the page and all the data from the sale gets pulled into what seems like a re-written page because the URL showing is still the /Checkout.aspx Is there a switch which is perhaps set improperly?

I've inherited the management of this site and unfortunately I have no prior experience with Kartris and to make things worse I'm told that there is a lot of custom coding done to calculate shipping based on dimensional weight equivalents. Other than the Kartris manual which barely scratches the service of this app, is there another more in-debt resource that you can recommend?


Thank you,
Larry
By Tiggywiggler - Sun 22 May 2016
Hello Larry,

The backend code is documented to a certain level and the naming conventions used should make enough sense to be able to pick the code apart.

You will occasionally find several methods that appear to achieve the same end goal but that is the nature of some open source projects. There isn't really anything more online to assist you on the system setup as the instruction manual covers most of the basic operation and the rest of it is a matter or picking the code apart.

If there is something specific you are looking for support on you can post a question to the forum. Obviously where people modify the code (as you said there is custom code for shipping calculations) then that code should be documented internally for you. In the event that the code hasn't been documented, and it is a small chunk of code, you could post it here for people to look at. If it is a complicated section of code and requires more specialist knowledge then you may need to approach one of the Kartris development partners (link in signature) and ask them to quote to assist.
By Paul - Sun 22 May 2016
It depends on the payment method.

If you're using a 'local' type on (PO/offline payment, Sagepage VSP Direct, etc.) then the customer remains on Kartris and the final confirmation is on Checkout.aspx itself.

If you're using a remote type payment system, which is the most common type of payment method, then the user is redirected to a secure page on the gateway's site to make payment and then (if configured correctly, which in some cases is in settings on the gateway's user area, and in some is sent in hidden fields by Kartris when the user is redirected to pay) they are returned to checkoutcomplete.aspx.