Page 1 of 1

How to include tracking codes?

Posted: Sat Aug 24, 2013 6:02 am
by stemon
Hi,

I am totally newbie on opencart, code and anything related to it.

But I would like to include Facebook Ads Conversion tracking on a page of my OC.

I actually don´t even know where to find a specific page on the files (FTP), I use FileZIlla.


There is also the verified Google+ code that I should include.
"Copy and paste the code snippet provided to the <head> tag of your website"

Where should I find the <head>??

Any help will be welcomed.


Thanks all

Re: How to include tracking codes?

Posted: Sat Aug 24, 2013 7:22 am
by stemon
Seems like I found where to include them. However, my "common" folder has 3 "header" files. Any idea of why? See Img attached please.
Sem título5.png

Sem título5.png (228.32 KiB) Viewed 1938 times


If so, which one should I paste the code??

Thanks

Re: How to include tracking codes?

Posted: Sat Aug 24, 2013 9:51 pm
by MarketInSG
if you want to make things easy, you can do so by pasting into system > settings > edit store > server tab, look for analytics. You can paste into it

Re: How to include tracking codes?

Posted: Mon Aug 26, 2013 11:02 am
by rempong
use "header.tpl" for add / edit code in header

but for easy way, use
MarketInSG wrote:if you want to make things easy, you can do so by pasting into system > settings > edit store > server tab, look for analytics. You can paste into it

Re: How to include tracking codes?

Posted: Mon Aug 26, 2013 11:16 am
by MarketInSG
keeping things simple for non programmers, and to prevent it from being lost in a theme upgrade / system upgrade, use the system > settings area

Re: How to include tracking codes?

Posted: Mon Aug 26, 2013 11:59 pm
by stemon
Thanks guys.


I already have the google analitics code in there. Can I just add other codes?

The google+ would make sense but regarding Facebook/Adwords convertion tracking, should them be added there too. Shouldn´t it be added on a checkout page or thanks for register page, for instance?



Many thanks

Re: How to include tracking codes?

Posted: Tue Aug 27, 2013 8:46 am
by MarketInSG
it depends where you need to place it. If you need to place it at the checkout or registration page, you will need to modify register.tpl, checkout.tpl

Re: How to include tracking codes?

Posted: Thu Sep 05, 2013 4:32 am
by stemon
Great.

Thank you all. I believe its working properly :)


PS: I highly recomend MarketInSG, nice extentions and great support.

Re: How to include tracking codes?

Posted: Thu Sep 05, 2013 10:18 am
by MarketInSG
cool. Thank you :)

Re: How to include tracking codes?

Posted: Sat Sep 07, 2013 10:36 am
by poppyvn
MarketInSG wrote:if you want to make things easy, you can do so by pasting into system > settings > edit store > server tab, look for analytics. You can paste into it
Thank for your support, i'm looking for this solution for my issue :)

Re: How to include tracking codes?

Posted: Sat Sep 07, 2013 5:41 pm
by MarketInSG
what issue are you looking for?

Re: How to include tracking codes?

Posted: Mon Sep 09, 2013 12:04 pm
by poppyvn
Some custom code i want insert in <head></head>

Re: How to include tracking codes?

Posted: Mon Sep 09, 2013 11:55 pm
by MarketInSG
glad you found something useful here then :)