[Support request] How to Add Google Analytics Code to Generate Press

Home Forums Support [Support request] How to Add Google Analytics Code to Generate Press

Home Forums Support How to Add Google Analytics Code to Generate Press

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #1340370
    David
    Staff
    Customer Support
    #1577908
    Andries

    I propose at the very minimum make an effort to let people add Analytics in a normal way as is done with 99% of premium WP themes. Laypeople don’t exactly know what “hooks” are.

    #1578041
    David
    Staff
    Customer Support

    Hi there,

    if anyone has difficulty understanding hooks then this article and Toms great video really does explain how to do this.

    https://docs.generatepress.com/article/hooks-element-overview/

    There are significant advantages of using hooks over having a dedicated field for just Analytics. We have to consider ‘what ifs’ – such as what if Google changes the way you add their codes in the future? It would be awful to have redundant code for a dedicated area in the Theme if that ever happened.

    #1622470
    SIddharth Solanki

    I am facing problem with these!

    can you please provide step by step guide?

    I have checked this whole thread and still not able to install google analytics!

    #1622551
    David
    Staff
    Customer Support

    This article provides all the steps required from adding Google Tag Manager:

    https://docs.generatepress.com/article/implement-google-tag-manager/

    If your only using Google Analytics then google only provides you with a single script – in that case you only apply the steps require for the ‘first block’ of code.

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.