Error adding FB Pixel to functions.php
-
I am trying to add the Facebook Pixel code to the functions.php of my child theme. I don’t know anything about PHP, so I followed the instructions of this page https://www.tipsandtricks-hq.com/how-to-advertise-to-your-wordpress-visitors-from-facebook-8340
The problem is that the pixel does not work: it does not load (I am using the Facebook Pixel Helper extension for Chrome). I don’t know anything about PHP, so I think I did not implement the code well. The functions.php of my child theme has a code for Google Analytics too, so I don’t know if it’s a problem too. I made a screenshot of the content of my functions.php file: https://imgur.com/a/rZwUW
I know I can add both tracking codes to the header.php of my child theme, but the Admin Control Panel of WordPress does not give me access and, as I am using a child theme, I prefer add the code to functions.php.
Thanks.
The page I need help with: [log in to see the link]
- The topic ‘Error adding FB Pixel to functions.php’ is closed to new replies.