Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I need the Meta Pixel code inserted at the "Thank you for your purchase page" at the end of the header. I tried a few options in the thread but couldn't find where to put it. I would appreciate it if anyone could help. Thank you!
The code I need to be inserted:
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1005917446806776');
fbq('track', 'Purchase');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=1005917446806776&ev=PageView&noscript=1"
/></noscript>
<!-- End Meta Pixel Code -->
@Yuly0423 wrote:I tried a few options in the thread but couldn't find where to put it.
What thread?
When dealing with technical issues and some other page/post/url is referenced link to it.
This can drastically increase chances someone gets the proper context and could understand it enough for a solution.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025