Facebook - Pixel integration

Open to all! Ask other shopowners for help.
Post Reply
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Facebook - Pixel integration

Post 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


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Facebook - Pixel integration

Post 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.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Facebook - Pixel integration

Post 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.
I am not here to build for you.
I am here to build with you. Let's help each other.
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Re: Facebook - Pixel integration

Post 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 ...
loop
Contributor
Posts: 253
Joined: Thu Mar 25, 2021 12:26 pm
Phoenix Version:
Has thanked: 7 times
Been thanked: 3 times

Re: Facebook - Pixel integration

Post 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply