- This topic has 16 replies, 6 voices, and was last updated 3 years, 8 months ago by Tom.
August 15, 2015 at 1:14 pm #129618Aun Raza
I’m using generatpress on my site linuxpitstop.com, I have signed up for a pop under ad with some ad network. They gave me code to put before the body tag. I can’t locate whats the correct file to place this code. Where is body tag located (i mean in which file) ?
AunAugust 15, 2015 at 1:19 pm #129623TomLead DeveloperLead DeveloperAugust 15, 2015 at 1:21 pm #129626Aun Raza
Thanks for prompt response Tom
I have GP Premium – which file i should be using in this case?
AunAugust 15, 2015 at 1:22 pm #129627TomLead DeveloperLead Developer
First, make sure GP Hooks as activated in “Appearance > GeneratePress”.
Then, go to “Appearance > GP Hooks” and place your code into the
wp_headtextarea.September 12, 2015 at 1:23 pm #136318meleager
I will take the liberty to use the already opened “ticket” to add my question.
Can I place my Google Tag Manager snippet there too? The instructions say to place it immediately after the opening <body> tag. Thanks.
DimitarSeptember 12, 2015 at 3:25 pm #136332bdbrown
Hi Dimitar. The “Before Header” hook will insert it right after the opening <body> tag.September 12, 2015 at 11:47 pm #136411meleager
Thank you. Unfortunately placing it there did not do the job. I have placed the Google Analytics tracking code there too and still see ‘Status: Tracking Not Installed’.September 13, 2015 at 12:03 am #136417TomLead DeveloperLead DeveloperJuly 18, 2016 at 7:27 am #210825Daniel
I’ve tried this, but it produces an empty line under the menu bar… is there any other way of including it? Thanks!
PS. still loving the theme!July 18, 2016 at 10:20 am #210881TomLead DeveloperLead DeveloperJuly 18, 2016 at 11:30 am #210950Daniel
Google call conversion trackingJuly 18, 2016 at 5:27 pm #211053TomLead DeveloperLead DeveloperFebruary 6, 2017 at 2:31 pm #275267Suzanne
I am having the same issue – putting the code for both my Google Analytics code (currently in my site without issue) and my new Retargeting Pixel code to the wp_head hook is adding a blank line and forcing my header image down.
See screenshot of site with both codes included in wp_head, red arrow pointing to blank line: https://tinyurl.com/zcqvc6e
See the code I put in the wp_head hook: https://tinyurl.com/hwxuz7f
Same blank line occurs if I put the Retargeting Pixel code in Before Header hook
The instructions for the Retargeting Pixel I received for implementation: The entire HTML pixel code, from , should be placed unaltered directly after the opening <body> tag. **Disclaimer: never edit the code
Where to put the Retargeting Pixel code so it doesn’t insert a blank line?February 6, 2017 at 8:15 pm #275342TomLead DeveloperLead Developer
Hard to tell without seeing the site, but try adding this to your
<img style="display:none" ... />February 7, 2017 at 10:12 am #275598Suzanne
Thank you, I will contact the marketing company and verify that I can put this in.
- You must be logged in to reply to this topic.