Set up (web)

Troubleshoot common tracking setup mistakes

Once you've correctly installed the tracking code snippet, you should allow up to 24 hours for data to appear in your account. If it has been more than 24 hours and you're still not seeing any data, take a look at the list of possible reasons below:

  • Using incorrect snippet and/or viewing the wrong account or view
    If you are tracking multiple websites and/or have access to multiple Analytics accounts, you might be using the snippet from another account and/or view. Make sure you are viewing the correct account and view. See Finding the Tracking Code for additional information.
  • Extra whitespace or characters
    Be sure to copy the snippet and paste it directly onto your website using either a text editor or an editor that preserves code formatting. We recommend that you do not use a word processor to copy the snippet from your account.  Doing so can add an extra space or change the quotation marks in the tracking snippet, which requires precise formatting in order to work.
  • Customization Errors
    If you are making customizations to the tracking code, make note of the following:
    • function names are case sensitive and should have correct casing
    • boolean values (e.g. true or false) should not be enclosed in quotes
  • Incorrect filter settings
    Incorrect filter settings can affect the data you see, and can inadvertently filter all of your data from your reports. In most cases, this occurs when users apply multiple "Include" filters. For details, see the article on Include and exclude filters.
  • Using multiple instances of the Classic Google Analytics tracking snippets
    The Classic Google Analytics JavaScript library (ga.js) doesn't support multiple tracking instances. If you have multiple tracking code snippets on your webpages, make sure you're using a supported configuration. Learn more about multiple tracking codes on web pages.
  • Other scripts on your page
    If you’re running other scripts on your page, make sure you’re not using any variables that Google Analytics uses. For more information on variables that the Google Analytics tracking code uses, visit our Developer Guides for the Universal Analytics (analytics.js) JavaScript library, and the Classic Analytics (ga.js) library.
  • Traffic from China
    Due to the way Internet traffic is handled in the country, some traffic from China might be under-reported in Google Analytics. While this issue isn't unique to Google or Google Analytics, we do take the issue seriously and are working to find solutions. You can continue to use Google Analytics to analyze overall traffic trends and patterns for your site as the decrease has been proportionally consistent during this period.