How to put script between and tags on a page

Community Forums Forums General Discussion How to put script between and tags on a page

This topic is: not resolved

This topic contains 4 replies, has 3 voices, and was last updated by  kevjonas 2 years, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #16641


    I’ve created a Facebook ad and I want to track conversions of new subscribers. I need to paste the script between the <head> and </head> tag on my “thanks for subscribing” page. How do I do that? I’m not sure how to get between those tags on a regular page.



    Another option would be to the add the code here: Custom Tracking/Conversion Code in your Themes SEO settings.

    Might not be able to do this if not using the Genesis SEO settings.

    Does it need to be on a specific page or is it JS that needs to be between the opening and closing head tags?



    It  needs to be on a specific page. Right now I use the All in One SEO Pack (plugin).




    Using Genesis Simple Hooks plugin, go to the WordPress Hooks > wp_head Hook and paste this code.

    Find the page i.d you want to track and replace 200 with the page i.d for that specific page.

    <?php if (is_page(200) ) { ?>
    <?php } ?>

    Also replace Facebook-Code-Goes-Here with your tracking code.

    This code includes a conditional tag so it only executes immediately before the closing head tag on the page with the I.D you place where the 200 is.



    Perfect Solution!  Thank you Brad Dalton.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.