Tagged: Facebook Pixel
Hi there,
I have the Facebook Pixel installed site wide throughout my enfold theme.
But now I need to install the specific event code for leads on a few pages.
How do I do this?
The code looks like this:
<script>
fbq(‘track’, ‘Lead’);
</script>
I’m after the simplest solution here please. I’d rather not mess around with core files for the theme as that is way over my head.
Thanks!
Dan
Hey Dan,
You can follow the instructions here: https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-head-section
Hope it helps.
Best regards,
Nikko
I am wondering the same thing I have the Facebook Pixel Base code added but need to add this event code to a specific page.
<script>
fbq(‘track’, ‘CompleteRegistration’, {
value: 1,
currency: ‘1’,
});
</script>
And they also provide this second bit of code. Not sure where it goes?
<!– End Facebook Pixel Code –>
</head>
<body>
<script>insert_event_code_here;<script>
Hi eugenebare,
Which page specifically do you need to add it to? We need to know the ID of the page in question.
Best regards,
Rikard
My objective is to use Pixel to track how many people complete my gravity form to get a generator estimate.
It starts on this page https://tpcgenerators.com/gen-portal/
and after its completed, it redirects to this page: tpcgenerators.com/we-will-be-in-touch-soon/
How is it best to place the event pixel?
I already placed the pixel base code in the child them of enfold I am using.