Posted: August 3, 2023 at 11:45 am
New site and updated to EE4. Facebook pixel is installed. Events manager is tracking page views, but no purchases. Used Pixel My Site to install FB pixel. Double checked that the number was right (if it wasn’t, it wouldn’t track page views). We know purchases are taking place. Any suggestions on what might be different with EE4 in regards to purchase tracking? Thanks! |
|
If you are comfortable with PHP and are using a child theme, then try these instead: Add JS to registration checkout: https://gist.github.com/lorenzocaum/397b6ca09bc1d1ab96b7 Add JS to the thank you page: If you’re not using child theme, create a plugin instead. Thanks. |
|
Thank you. I implemented this but it’s still not working. I wasn’t sure which instance the instruction to “NOT include the opening PHP tag” was referring to. See image. https://paste.pics/P0BII |
|
Thank you. I implemented this but it’s still not working. I wasn’t sure which instance the instruction to “NOT include the opening PHP tag” was referring to. See image. https://paste.pics/P0BII |
|
Please do NOT include the opening php tag, except of course if you’re starting with a blank file. I notice that you already have 300+ line of code, so you have to remove this part. I believe, the pixel needs to be added in the header So you have to Change wp_footer to wp_head After you installed it, you can now test it, you can install browser extension like this or similar. btw, the pixel you installed is only available after checkout. thanks |
|
Thank you Rio for the help. I’ve made those changes you recommend. Yes, I do have the Meta Pixel helper installed and it shows that the pixel is installed and tracking page view events on the site. That has not been a problem. It was that the new site and the new EE4 install stopped tracking purchases when we made the update. I will give this a day and see if it’s working. Thank you again. |
|
Awesome! Have a wonderful day! |
|
Hi Rio … 🙁 Still not working. Did you get a chance to look at my code and see if it looks right? And if it does, do you have any other suggestions besides creating a site specific plugin? |
|
Hmm, I can see that you have pixel working, in event list can you tell us if you see meta pixel helper detected in checkout? I can do test purchase too, but i need you to fill this. thanks |
|
Thanks Rio, I did a test myself and definitely see the pixel is on the checkout at https://apcalrocknranch.com/registration-checkout/?uts=1691623931&event_cart=view#checkout and the thank you page: https://apcalrocknranch.com/thank-you/?e_reg_url_link=1-1ff5033dccb35bea1770addf53a45c89 Do you have any other suggestions? |
|
right, i can see that pixel is now fixed. are you looking for FB event?, we dont have article on that, but i saw something that can be helpful to you. if pixel didn’t detected the purchase event, try this I will also ask or marketing department if they have advice on this. |
|
The support post ‘EE4 and Facebook Pixel Purchase Tracking’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.