Hi Pages Team,
A client uses Facebook pixel code to track clicks on their Yext powered pages. Currently they track clicks on the “find your store” button, but are trying to also track clicks on the “Search” button.
This is the current header code:
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-111612618-1', 'auto');ga('send', 'pageview');</script>
<meta name="Facebook-domain-verification" content="exrg9hhywi7ntxj4ngdivp7ux7t2jm" />
<!-- Facebook 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', '437547367483447');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=437547367483447&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->Preformatted text
What would need to be changed so that they can track clicks on the Search button? Thank you!