Comments 4Fionn started the conversationFebruary 28, 2022 at 10:27amHi I am looking to add a facebook pixel code to individual pages on the salient theme. Is this possible? Thank you 1,919Judith repliedFebruary 28, 2022 at 10:45amHi Fionn,Thanks for keeping in touch.Yes you can add the Js code in the js custom code under Salient > General Settings > CSS/Script Related.Thanks. 4Fionn repliedFebruary 28, 2022 at 10:48amThanks for the quick reply!If i add the pixel code to the Custom JS Code wont this be attached to all pages globally?I am trying to track specific interactions on pages with the code. So need to single out specific pages to add the code to the header. 1,919Judith repliedFebruary 28, 2022 at 11:16amHi Fionn,Please check this user case whether it can help:https://wordpress.org/support/topic/excluding-fb-pixel-on-specific-pages/.Thanks. 4Fionn repliedMarch 1, 2022 at 9:28amHi Judith Tried the below plugin but when i tried to isolate the Salient JS composer, with the pixel code in it, to a specific page it knocked off the styling across the site.Any other way within salient to put the pixel code on a single page header? 3,001Andrew repliedMarch 1, 2022 at 9:36amHello again,You can use this method to add a custom script to a specific page(method 1)https://thewphosting.com/add-custom-javascript-specific-page-wordpress/Thanks, 4Fionn repliedMarch 2, 2022 at 11:07amHey Andrew I have tried with the below custom field wordpress feature but the pixel still isn't working on the individual pages. Any other suggestions? ( I have attached a screenshot of one of the pixels if this helps ) 8,939Tahir repliedMarch 2, 2022 at 11:25amHey Again,We do have a "RAW JS" Page element that you can use in the Page Builder to add JS code. Thanks ThemeNectar Support Team 1 Like 4Fionn repliedMarch 4, 2022 at 11:37am@TahirIt was a Javascript prioritising issue in the end. The RAW JS at the top of the visual builder worked perfect! Thank you1 Like Sign in to reply ...
Hi
I am looking to add a facebook pixel code to individual pages on the salient theme. Is this possible?
Thank you
Hi Fionn,
Thanks for keeping in touch.
Yes you can add the Js code in the js custom code under Salient > General Settings > CSS/Script Related.
Thanks.
Thanks for the quick reply!
If i add the pixel code to the Custom JS Code wont this be attached to all pages globally?
I am trying to track specific interactions on pages with the code. So need to single out specific pages to add the code to the header.
Hi Fionn,
Please check this user case whether it can help:
https://wordpress.org/support/topic/excluding-fb-pixel-on-specific-pages/.
Thanks.
Hi Judith
Tried the below plugin but when i tried to isolate the Salient JS composer, with the pixel code in it, to a specific page it knocked off the styling across the site.
Any other way within salient to put the pixel code on a single page header?
Hello again,
You can use this method to add a custom script to a specific page(method 1)
https://thewphosting.com/add-custom-javascript-specific-page-wordpress/
Thanks,
Hey Andrew
I have tried with the below custom field wordpress feature but the pixel still isn't working on the individual pages.
Any other suggestions? ( I have attached a screenshot of one of the pixels if this helps )
Hey Again,
We do have a "RAW JS" Page element that you can use in the Page Builder to add JS code.
Thanks
ThemeNectar Support Team
@Tahir
It was a Javascript prioritising issue in the end. The RAW JS at the top of the visual builder worked perfect! Thank you