Post by debbiekipt » Sat May 03, 2014 8:33 pm

Hi
Can anyone tell me if it possible to add code between <head> and </head> of individual product pages in opencart?
And if so, how?

I cannot find anything relating to this on google or here, so am wondering if it is not possible?

Appreciate any help!
Thanks

Active Member

Posts

Joined
Sun Nov 21, 2010 8:10 pm

Post by labeshops » Sat May 03, 2014 8:44 pm

The header file is common to all pages in opencart, not just product pages. Most tracking codes can be added to the header with no problem. The easiest way to do this is use the "google analytics" box in the settings of the store as it really can be used to insert any code you need before the </head> tag, not just google. Paste in the full code they give you and save.

Running Opencart v2.2 with multi-stores from https://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by debbiekipt » Sat May 03, 2014 9:04 pm

Thanks for your reply and suggestion labeshops!

I did see that adds the code between the <head></head> tags.

My concern with trying this is that FB specifically tells you to put it on the page you want tracked.
I do not know enough to know if the FB code is on every page, it will count every visit to every page in its reports, not just to the product page wanted.

I guess one way to find out is to try it!
Thanks again

Active Member

Posts

Joined
Sun Nov 21, 2010 8:10 pm

Post by debbiekipt » Sun May 04, 2014 3:57 pm

No joy with that method :-(

Anyone achieved this and willing to share how?

Or maybe it is just not possible in opencart?

Active Member

Posts

Joined
Sun Nov 21, 2010 8:10 pm

Post by labeshops » Sun May 04, 2014 7:10 pm

Okay, I'm not familiar with facebook tracking code and couldn't find anything about it on facebook. What does it do? I figured it was for a facebook button?

Running Opencart v2.2 with multi-stores from https://www.labeshops.com which has links to all my stores.

Image


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by debbiekipt » Wed May 07, 2014 2:17 am

Hi labeshops
Thanks for your reply :-)
It is for Facebook adverts. Something i thought i'd try for a new event.

When you create an ad. you have to choose what you want to track as part of creating the ad.
FB gives a list, such as 'likes', 'clicks to website', 'conversions' etc and once you select, FB then creates a code to track that.
You then have to put the provided code in the <head> area of the page you want to track clicks to, purchases from etc.
i.e. the specific product in my case.

I can find nothing about it on the net or forums, so am wondering if no one using opencart is bothering with FB ads?

Active Member

Posts

Joined
Sun Nov 21, 2010 8:10 pm

Post by n2rtechnologies » Tue Aug 29, 2017 3:09 pm

Hi You can download free extension from here!
http://www.n2rtechnologies.com/products ... pixel-code

Download Free OpenCart Module.
OpenCart FREE Extensions

Hire Us and Get Free Support.
Hire OpenCart Developer


User avatar

Posts

Joined
Wed Aug 10, 2016 10:51 pm

Post by purchasetheme » Thu Jun 04, 2020 1:40 am

You can copy the code and put in the head section. It will start tracking your page views on every page the user visit.

Moreover, if you want other events to support like addtocart, purchase, initiate checkout etc. Then you need a properly coded extension.

The below extension is well coded and it support all your events. You can use the same and the support and installation is FREE.

https://www.opencart.com/index.php?rout ... n_id=28804

PURCHASETHEME.COM
Facebook Pixel Code & Facebook Conversion Code
https://www.opencart.com/index.php?rout ... n_id=28804
---------------------------------------------------------
Algolia Search - Best, Quick, Relevant, Optimized
https://www.opencart.com/index.php?rout ... n_id=34189


User avatar
Newbie

Posts

Joined
Tue Jun 05, 2018 10:43 pm

Who is online

Users browsing this forum: No registered users and 15 guests