[Resolved] Add Google Analytics tracking code to head of each page or just the front page

Home Forums Support [Resolved] Add Google Analytics tracking code to head of each page or just the front page

Home Forums Support Add Google Analytics tracking code to head of each page or just the front page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1773083
    Sid

    Hi team

    How do i go about adding my Google Analytics tracking code to head of each page or just the front page.
    Im new to all this so need help. Read some answers about hooks etc but im lost..

    Is there a quick way i can do this similar to adding how I add custom CSS to theme in the designated area.

    Hope all this makes sense.

    Thanks

    #1773121
    Leo
    Staff
    Customer Support

    Hi there,

    A hook element is what you need:
    https://docs.generatepress.com/article/hooks-element-overview/

    Simply select wp_head under hook name and display to entire sites should work.

    As for adding CSS, take a look at this:
    https://docs.generatepress.com/article/adding-css/

    #1774571
    Sid

    Hey Leo

    Thats a great answer and thank you for the link to the video. Even an amature like myseld understood hook elements.
    I’ll give this a try and any issues give you a shout.

    Thanks and keep up the good work with this amazing template 🙂

    #1774642
    Leo
    Staff
    Customer Support

    Thank you for the kind words!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.