• Resolved rebornhairppp

    (@rebornhairppp)


    Hello,

    I need to add my google analytics 4 pixel code to the body of every single page of my website.

    If I choose side wide, the only two options are header and footer. Why doesnt your plugin give me the option to insert the code to the body for side wide option?

    It makes no logical sense.

    I dont want to select specific pages because I have 30 plus pages and every time I add a new page I need to remember to add it to your plugin. It is a pain.

    Can you please update it so side wide also has body option?

    In the meantime, for side wide which option do I choose if Google tells me specifically to add the code to the body section on my site?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author DraftPress Team

    (@draftpress)

    I’ve taken note of your request and I’ll add a new option to the side wide setting in the plugin that allows users to add the code to the body of the page. I’ll also update the documentation for the plugin to reflect this new change.

    In the meantime, if Google tells you specifically to add the code to the body section of your site, you can choose the “Header and Footer” option for the side-wide setting. This will add the code to the header and footer of all pages, including the body. @rebornhairppp

    Thread Starter rebornhairppp

    (@rebornhairppp)

    THANK YOU!

    Just to clarify, I can only choose one over the other. I cannot choose BOTH header and footer.

    Google gives you two different pixel codes (one for the header and another for the body).

    What I did was create two snippets of code using your plugin. For the Google header code, I selected header and for the Google body code I selected footer.

    Last feature request – can your plugin automatically add the <script> </script> tags once we select Javascript and <style> </style? tags if we select CSS? Sometimes we forget to add those tags and we ending scratching our heads for 10 minutes why our code doesnt work. We then later find out it’s solely due to this tiny omission. Other code/snippet plugins do not require you to add these tags or they add them for you automatically!

    Hope this makes sense!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How To Add Google Analytics 4 Pixel To Body Side Wide’ is closed to new replies.