Placement of Google Tracking code in Magento Site

Hi everyone,

I have to place a Google tracking script on the last page of my checkout, ie. the page that appears after the purchase has been complete. I know that the location of this page is probably different on different websites but I wondered if anyone could point me in the right direction so that I have a general path I can begin to search from? The code would need to only be on the last page and no other.

Thanks in advance for any help.
LVL 1
gwh2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
gwh2Author Commented:
Thanks for the reply but I don't need a beginners guide to set up Google Analytics. The code snippet that I have is for tracking Google Adwords and as mentioned, it needs to be placed on a specific page.

Any further suggestions would be very welcome.

Thanks
Ray PaseurCommented:
What is the page that initiates the checkout?  It probably has an HTML form with an action= attribute.  The action script probably implements the checkout process, right?  Most likely it is this script or a redirected "thank you" page that would need to run the GA code.  Just add it to the web page and you should be OK.  You can check the success of this by using "view source" to locate the GA snippet in the HTML document.

Another possibility might be to put the GA code on all pages via some kind of template.  You could use the GA reports to check any page of the site, including the checkout script.  This design might give you better visibility into the entire shopping experience of your clients.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gwh2Author Commented:
Thanks for tips - much appreciated.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.