Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6754399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:16:30+00:00 2026-05-26T13:16:30+00:00

Using Google Analytics with my Web Pages / Java Script application I just wonder

  • 0

Using Google Analytics with my Web Pages / Java Script application I just wonder what happens to the statistics when I run (test) the pages locally? Testing the application is done on a local web server, is this included in the statistcis?

Or, in turn, is this the keyline

_gaq.push(['_setDomainName', 'mydomain.org']);

and all “recording” is restricted to mydomain.org? Any idea how this works?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:16:31+00:00Added an answer on May 26, 2026 at 1:16 pm

    If you set your setDomainName for a domain that doesn’t match the current domain, it will not work.

    So, if its set to mydomain.org, and you’re on testing-domain.org, Google Analytics will try to set the cookies to mydomain.org and fail (because the cookies won’t be set, as you can’t set external domain cookies from JavaScript); seeing no cookies, it will not make the __utm.gif request go Google Analytics, and no data will be tracked.

    The same thing will occur if you execute Google Analytics on the file:// protocol.

    (The exception to the setDomainName rule is if you pass either a non-domain string like (none) or an empty string to setDomainName, which has the effect of setting the domain hash (a cookie identifier to prevent data collision) to 1 and setting the Google Analytics cookies to the domain of document.domain

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to gather usage statistics for my iPhone app using Google Analytics
Im using google analytics to track the user in my android application, but in
Currently using Google Analytics as a supplement to our paid tracking software, but neither
Is there anyway, using google analytics, to track a user's journey/selections through a long
I have an ASP.NET website set up, and I'm using Google Analytics for page
I'm using a Google Analytics API Class in PHP made by Doug Tan to
I'm using GAPI library (in PHP) for querying Google Analytics API. I request 2
Using google's Protocul Buffers , I have a service already written in Java which
Turkish government have blocked some IPs including Google Analytics. This caused all the web
Is it safe to inject JQuery's script using JsonP? The installation of my web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.