Agamemnus
Agamemnus

Reputation: 1426

I am only seeing real-time data in my Google Analytics (Universal Analytics) hits

I am not seeing any stored data in the audience overview, but only real-time data. Furthermore, I am not getting any dimension hits, even though I set these values in Admin>Custom Definitions>Custom Dimensions. Is there something silly I am missing?

Here's my code. I am running plugin_code (state) every time the history state changes.

var ga = undefined
 function plugin_code (state) {
  if (typeof ga == "undefined") {
   window.GoogleAnalyticsObject = "ga"
   if (typeof window.ga == "undefined") {
    ga = window.ga = function () {
     window.ga.q = window.ga.q || []
     window.ga.q.push (arguments)
    }   
    window.ga.l = 1 * new Date ()
    var ga_script_tag    = document.createElement("script")
    var first_script_tag = document.getElementsByTagName("script")[0]
    ga_script_tag.async = 1
    ga_script_tag.src   = "//www.google-analytics.com/analytics.js"
    first_script_tag.parentNode.insertBefore (ga_script_tag, first_script_tag)
   }
  }
  ga('create', 'UA-xxxxxxxx-1', 'auto')
  state.gid = 1 // debug.
  if (state.gid) ga('set', 'dimension1', state.gid)
  if (state.a)   ga('set', 'dimension2', state.a)
  ga('send', 'pageview', {'page': state.page, 'title': state.page})
 }

Upvotes: 0

Views: 127

Answers (1)

TomFuertes
TomFuertes

Reputation: 7270

Data in Standard Reporting can take up to 24 hours to display.

According to Google, site statistics update every 24 hours, but the company doesn't specifically state how long it takes to update other information that may be associated with your Google Analytics account. For example, you may also be using Google's AdWords to purchase text-based advertising on other sites. Professionals such as Internet marketing consultant Talal Melhem suggest that traffic data updates every three to four hours, AdWords can take up to 24 hours and E-commerce data in your Google Analytics dashboard lags further behind at up to 72 hours. -- Source: How Frequently Does Google Analytics Update?

Also, check your Profile Filters to make sure you're not excluding traffic.

Upvotes: 1

Related Questions