Archived topic
No Body Tag
12 replies · Started by Louis on January 14, 2017
I am trying to put in Google analytics and Adwords Tags. the instructions say to put the javascript code after the Body tag. I do not see the Body tag on my pages. Can you please tell me if I need to add that tag manually to each page, or did I miss something in setup. BTW - I searched for Body in the knowledge base and nothing came up.
Thank you for your help.
You can put it in the wp_head hook and it will be inside the body. Please see the documentation for more info https://docs.generatepress.com/article/hooks-overview/
Thank you Jamal.
That seemed to work. Actually there are two snippets of code that Google wants me to insert:
One after the Head tag and one right after the body tag. Should I put both snippets of code in the wp_head?
Louie
The body tag one can go in wp_footer :)
Thank you.
You're welcome :)
I need the adwords conversion code on a specific page between the <body>. how do I do that?
sorry about my English. I'm brazilian.
You would do this in the wp_head hook:
<?php if ( is_page( 'your-page' ) ) { ?>
code here
<?php } ?>
Tks
I put the Adwords code in the location identified using GP hooks, but it did not work and I can not count conversions
Did you change 'your-page' to the actual name of the page?
What code are you trying to add exactly?
Yes, i did.
Adwords code.
What GP hooks i need to use to insert Adwords code?
It should be the wp_head hook. Can you link me to the page that's not working?
Thanks!