[Resolved] Adding Google Analytics – possible?

Home Forums Support Adding Google Analytics – possible?

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #143765
    Lisa Blaushild

    Hi Tom,

    Is it possible to add a Google Analystic ID code to my site? Or how is it done? Thanks!

    Lisa
    NY

    #143768
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    You have a couple options:

    a) Use our GP Hooks add-on to add your tracking code to the wp_head hook.
    b) Use a plugin like this: https://wordpress.org/plugins/google-analytics-for-wordpress/

    #143777
    Lisa Blaushild

    Thanks, I’ll get the GP Hooks add-on!

    #143805
    Lisa Blaushild

    Tom,

    One other thing – would the Page Header plug-in allow me to add contact info on the upper left hand corner of the home page?

    Thanks.

    #143832
    bdbrown

    Hi Lisa. You could add your contact info to the site heading using one of the following hooks with something like this:

    <?php
      if ( is_home() ) { ?>
        <p class="contact-info">
          Contact name <br>
          Contact address <br>
          Contact phone
        </p>
    <?php } ?>
    

    1. Using the “Before Header” hook will place it in the very upper left corner of the site.
    2. Using the “Before Header Content” hook will place it in the header just above the site title/description/logo.

    Check the “Execute PHP” option box. Then you can position/style it as needed using CSS.

    If you wanted the contact info at the top of the Home page content section then you could put this in the Blog Page Header Content:

    <p class="contact-info">
      Contact name <br>
      Contact address <br>
      Contact phone
    </p>
    

    Adding CSS: https://generatepress.com/knowledgebase/adding-css/

    #143968
    Lisa Blaushild

    Okay, thank you!

    Lisa

    #143972
    bdbrown

    You’re welcome 🙂

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