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

  • SEARCH
  • Home
  • 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 6871517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:48:58+00:00 2026-05-27T03:48:58+00:00

I just start to work with Google API. At first I upload a simple

  • 0

I just start to work with Google API. At first I upload a simple HTML file to a host that have a button to send some information to Google and I see correct result but when I test this method on my real project it doesn’t work properly. I did same work as my simple sample put tracking code after < head > tag

<script type="text/javascript" >

var _gaq = _gaq || [];

_gaq.push(['_setAccount', 'UA-26*****-2']);
_gaq.push(['_trackPageview']);

(function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async =        true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function sent_report(){
_gaq.push(['_trackEvent','label','Over','back']);
}

</script >


and call

_gaq.push(['_trackEvent','button','click','Just for test']);

but it doesn’t make any change in my feedback in Google and its hard to debug because Google update feeds after 24h

Did I forgot some thing to do?or did something wrong?
Is there any problem that I run local host and didn’t upload it to the host?!?!?
Thank you…

  • 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-27T03:48:58+00:00Added an answer on May 27, 2026 at 3:48 am

    Google Analytics won’t work on localhost or 127.0.0.1 or any other IP address. It needs a FQDN to work correctly.

    I usually setup http://www.example.com on my hosts file to redirect to 127.0.0.1 and I use that instead to test my code.

    You can debug if you’re coding is working or not by using HTTPFox and checking the requests to __utm.gif. The data you send is encoded as query parameters but it should be easy to read them.

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

Sidebar

Related Questions

I have a build.xml that work fine, until I start using boilerplate generation and
I just start learning WPF, is that possible I can create an IE toolbar
How do I fix a broken debugger, one that just won't start, in EclipseME
this is my first time to work with API's in PHP, so please bear
I have two issues I'm trying to work though. The first is I'm trying
Just wanted a clear answer for a direct question -- google results have been
I have just downloaded the Newest Google Chrome to test my gwt app... And,
I'm having this problem: I have two Google maps in one page, showing just
I have a project that uses the Google AdMob Ads SDK. I'm trying to
I just start playing with GWT I'm having a really hard time to make

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.