Where to paste snapchat pixel code?

Hello

I would like to insert the snapchat pixel code into my website but not sure where to paste it. It says i need to paste it in the head section of my website but im not sure where to find it. I am using a child theme, can I put it in the functions.php file?

Can you please help?

Thanks

<!-- Snap Pixel Code --><script type='text/javascript'>(function(e,t,n){if(e.snaptr)return;var a=e.snaptr=function(){a.handleRequest?a.handleRequest.apply(a,arguments):a.queue.push(arguments)};a.queue=[];vars='script';r=t.createElement(s);r.async=!0;r.src=n;var u=t.getElementsByTagName(s)[0];u.parentNode.insertBefore(r,u);})(window,document,'https://sc-static.net/scevent.min.js');snaptr('init','6b560bd3-fb18-440a-afc3-602eade6c8be', {'user_email':'_INSERT_USER_EMAIL_'});snaptr('track', 'PAGE_VIEW');</script><!-- End Snap Pixel Code -->

Hello Advasa,

Thanks for writing in!

Please take a look at the solution mentioned in following thread to add pixel code.

You can also use plugins to add third party tracking codes. For more detail please take a look at following article.

Thanks.

Hello

I tried adding that code to the finction.php file but it didnt work.

Thanks
Justin

Hi Justin,

When you inspect the site using the browser’s code inspector, do you see the code added on the site?

If not, then there might be something incorrect in the way you added it to the child theme or the child theme might not be the active theme.

If you are seeing the code, there could be an issue with the code you are trying to add.

We could check this if you can provide us with the URL of the site in question.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.