Site logo

Archived topic

GP Hooks not showing in menu

9 replies · Started by Steve on November 23, 2018

Viewing posts 1–10 of 10

I've just purchased and installed GP premium but the Hooks section hasn't appeared under Appearance - am I missing something?

Thanks

Thank you!

You're welcome :)

I've found it & it's all a bit too much for me! I'm not a developer and looking at how to add Google Analytics etc, has baffled me, I think I'll stick with the WP Insert Headers & Footers plugin which is easy to use.

If its just the GA script then just simply:

1. Create a new Hook give it a title.
2. Paste in your script.
3. Select the wp_header hook.
4. Display Rules > Entire Site
5. Save

If its GTM then they provide a second script that goes in before the first open body tag. To add that repeat the above and use the before header hook.

Likewise for other scripts that go in the footer its the wp_footer hook and if its a script before the closing body tag its the after footer hook

Thanks, but sorry to sound dumb but is the wp_header hook the same for the Facebook pixel and do I need to create separate hooks for both of them or can I paste both codes into the same element?

Yeah - So in comparison to the plugin:

Header = wp_header
Footer = wp_footer

Yes you can hook multiple scripts e.g FB pixel and GA into the single Hook.
Reasons to keep them separate would be if you wanted them to have different display rules.

Got it - thanks very much!

You're welcome glad to be of help

This archived topic is closed to new replies.