Okay
  Public Ticket #2991527
Header code individual pages
Closed

Comments

  •  4
    Fionn started the conversation

    Hi

    I am looking to add a facebook pixel code to individual pages on the salient theme. Is this possible?

    Thank you


  •  1,919
    Judith replied

    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.

  •  4
    Fionn replied

    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.

  •  1,919
    Judith replied

    Hi Fionn,

    Please check this user case whether it can help:

    https://wordpress.org/support/topic/excluding-fb-pixel-on-specific-pages/.

    Thanks.

  •  4
    Fionn replied

    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?

  •  3,001
    Andrew replied

    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,

  •  4
    Fionn replied

    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 )

    2714026741.png
  •  8,939
    Tahir replied

    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 

  •  4
    Fionn replied

    @Tahir

    It was a Javascript prioritising issue in the end. The RAW JS at the top of the visual builder worked perfect! Thank you