简体   繁体   English

Facebook Pixel无法在Shopify网站上使用

[英]Facebook Pixel is not working on Shopify website

I have tried both by adding in Shopify Pixel setting and by adding by manually pasting code in theme.liquid but pixel is still showing error. 我已经尝试通过在Shopify像素设置中添加和通过在theme.liquid中手动粘贴代码进行添加,但是像素仍然显示错误。

Error message :- "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" 错误消息:-“我们检测到事件代码,但该事件尚未激活像素,因此未将任何信息发送到Facebook。这可能是由于代码中的错误所致,但是如果像素在动态事件中触发,也可能会发生例如点击按钮”

I am preety exausted finding th solution. 我很高兴找到解决办法。

Your Facebook pixel is not activated. 您的Facebook像素未激活。 Just Goto Facebook and try to activate it. 只需转到Facebook并尝试激活它即可。

Once activated then edit your pixel fire code and add init into the facebook pixel before tracking code. 激活后,请编辑您的像素触发代码,并在跟踪代码之前将init添加到facebook像素中。 like below.. 像下面一样

fbq("init", FACEBOOK_PIXEL);

You can share your code here if still you are stuck, I'll help you out. 如果您仍然遇到问题,可以在这里共享您的代码,我会帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM