Page 1 of 1

Facebook - Pixel integration

Posted: Tue Dec 17, 2024 7:47 am
by loop
Hi everyone.
I want to do advertising via facebook / instagram and my marketing guy told me I should integrate the "facebook pixel". I was wondering if anyone has already done the integration of the PIXEL API (events are pushed to facebook when viewing product / clicking in cart ..).

Is there an addon for this? it looks very complex at first sight and there are of course many integrations on the facebook site, but not for phoenixcart...

Thanks in advance
Philip

Re: Facebook - Pixel integration

Posted: Tue Dec 17, 2024 8:05 am
by heatherbell
Looking at this: https://developers.facebook.com/docs/me ... et-started
Looks like you need to first generate your Meta Pixel's "Base Code" in your Meta Ads Manager and that code needs to be in <head> section of /templates/default/includes/components/template_top.php
https://github.com/CE-PhoenixCart/Phoen ... op.php#L34
Paste it there or a hook file can be made to inject it there.

Re: Facebook - Pixel integration

Posted: Tue Dec 17, 2024 10:49 am
by burt
I made a Pixel thing in the very first iteration of the "Days Of Code" offers, which was back in February 2015 !

I think it would likely have been a Header Tag Module as Hooks weren't really the big thing then, that they are now.

I could probably find it, but as it's almost 10 years old the codebase would be out of date.
It might be useable as a starting point.

Re: Facebook - Pixel integration

Posted: Tue Dec 17, 2024 1:03 pm
by loop
if you find it, it would be nice if you can send it to me, i don't get it at the moment, i see the "simple" header tags which i can include on the site: https://developers.facebook.com/docs/me ... et-started

but the docs they sent me are alot more complex https://developers.facebook.com/docs/ma ... rsions-api

at the moment i don't get really what's needed and what not ...

Re: Facebook - Pixel integration

Posted: Sat Dec 21, 2024 1:11 pm
by loop
I have done now pixel integrations throught the tagmanager, from google, that works
but i'm struggeling with the conversion API with tagmanager, i have a doc but i don't get it :(
https://developers.facebook.com/docs/ma ... cale=de_DE

Does anybody know how to integraate it with tagmanager OR directly in phoenix? i'm also willing to pay, if somebody can do that for me, thank in advance.