Facebook Pixel install - shopsite's instructions don't work!

General ShopSite user discussion

Facebook Pixel install - shopsite's instructions don't work!

Postby notvinnie » Thu Jan 14, 2021 8:10 am

Hello all,

Trying to track pageview, add to cart, initiate checkout, and other checkout behaviours.

I have tried to use the instructions from shopsite's own guide but this could does not seem to work for me.

I have tried to follow the instructions here

https://www.shopsite.com/templates/cookbook/tracking-facebook-pixel.html

but as a result, I get warnings in the pixel helper in my browser, such as "We detected event code but the pixel has not activated for this event, so no information was sent to Facebook. This could be due to an error in the code, but could also occur if the pixel fires on a dynamic event such as a button click"

Does anyone have a working FB-Pixel.sst that they would be willing to share that I could simply replace my own Pixel ID into?

Many thanks in advance for any help anyone can offer.

Best Regards
notvinnie
 
Posts: 2
Joined: Mon Nov 02, 2020 4:48 am

Re: Facebook Pixel install - shopsite's instructions don't w

Postby ShopSite Lauren » Thu Jan 14, 2021 1:18 pm

It looks like the FB tracking code has changed slightly since that article was last updated. You will want to change the script URL from:
document,'script','https://connect.facebook.net/en_US/fbevents.visibilityevents.js');

to:
document,'script','https://connect.facebook.net/en_US/fbevents.js');

That fixed the tracking pixel when I tested in my store.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 871
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to User Forum

Who is online

Users browsing this forum: No registered users and 13 guests