• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Google Analytics not working?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Google Analytics not working?

This topic is: not resolved

Tagged: google analytics

  • This topic has 6 replies, 3 voices, and was last updated 11 years, 7 months ago by Scott.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 17, 2014 at 10:45 am #114671
    Scott
    Member

    I've added the tracking information to the Theme Settings on the Header and Footer Scripts for wp_head()

    It's been a couple of days and it's still not showing up. Any ideas as to why?

    HomePage

    Thanks


    52590122

    http://scottwclifton.com
    July 17, 2014 at 11:52 am #114691
    cwalsh
    Member

    You might want to double check your tracking code in Google Analytics.


    Need website customization services or other help? Caley @ PixelPerfect Design Studio | Connect with me on Twitter: @pixelsperfect | Like me on Facebook: https://www.facebook.com/PixelPerfectDesignStudio

    July 17, 2014 at 12:04 pm #114695
    Genesis Developer
    Member

    Do not put the code in two section. You will add the code in Footer Script section


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 17, 2014 at 12:10 pm #114697
    Genesis Developer
    Member

    I think that code have some problem. try this once

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-52590122-1', 'auto');
      ga('send', 'pageview');
      ga('set', '&uid', {{USER_ID}}); // Set the user ID using signed-in user_id.
    </script>

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 17, 2014 at 12:46 pm #114706
    Scott
    Member

    I did not put the code in two sections and the code you have is the same exact code from the tracking code section of Google analytics.


    52590122

    July 17, 2014 at 1:01 pm #114710
    Genesis Developer
    Member

    last line have quotation problem . Right one is ga('set', '&uid', {{USER_ID}}); // Set the user ID using signed-in user_id.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    July 17, 2014 at 1:08 pm #114712
    Scott
    Member

    I guess I don't understand what the user id is...where is it coming from? I tried creating one in google analytics and it just had me create a 'view' of some sort. I took it off for now. I'll let you know if it shows up tomorrow.


    52590122

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble