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 6189727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:27:51+00:00 2026-05-24T02:27:51+00:00

Ok first of all, i have the new code, the one that is put

  • 0

Ok first of all, i have the “new” code, the one that is put just before the </head> tag

<script type='text/javascript'>

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-#*$!#*$!xx-x']);
_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);
})();

</script> 

The application that uses this code has 5 pages.
I have put this code in 3 of them (the first 2 and the last one).
The last page send me an email about what the visitor wants from our site(a form filled by him actually).
In the last 5 days i received 5 such emails/requests.
But google analytics only show 1 visit in that page.

Any reason as to why? I dont know how accurate google is for the first two pages, but i know for sure how much trafic/vistis my exit/thank you/email page has.
So, what’s wrong and what should i check?
Or it’s just a google glitch?

EDIT:
finally it works. Ignore google’s new code. Stick to old code at end of page, before the </body>.

  • 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-24T02:27:52+00:00Added an answer on May 24, 2026 at 2:27 am

    Google Analytics (GA) can fail to get an accurate count for any number of reasons:

    • Javascript is turned off
    • User has blocked GA
    • A Javascript error in codes before the GA codes prevents it from running
    • The GA code is at the bottom of the page and that part is not loaded because
      • The user left the page before it could finish loading
      • A blocking event (e.g., another Javascript) timed out before the GA could run
      • An error on the page prevented the browser from loading GA
    • GA itself failed to record the data for whatever reason
    • A caching proxy server mangled the page so the GA code was not included or was broken1
    • Network error
    • Browser error

    If you want truly accurate visitor information, you need to look at your web server(s) logs, and even then you won’t always get it due to caching (local, proxy, etc).

    Try this

    <body>
     <div>
      <img src="/images/top.gif" height="1" width="1" alt="" />
     </div>
    
     ...[page content]...
    
     <div>
      <img src="/images/bottom.gif" height="1" width="1" alt="" />
     </div>
    </body>
    </html>
    
    1. Put web bugs (1×1 transparent images) on your page, one at right after <body> and one just before </body>.
    2. Examine your server logs to determine the percentage of people who successfully load the entire page (each top-bug’s entry matches a botom-bug entry in the logs)
    3. Calculate the page load time between top and bottom bugs.

    This will give you a good idea of what is going on with your pages and whether people are even loading each one in its entirety.

    1 I’ve actually witnessed this on more than one occasion.

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

Sidebar

Related Questions

First of all I have to say I am new to iOS development. My
first of all I'm totally new to FAST but I already have a couple
First of all let me tell you that i have read the following questions
I'm writing my first Android application and I have one activity that I'd like
I have a method on one of my objects that returns a new instance
I'm new to entity frame work code first. I have simple class called Cat
First of all I have searched many times in this forum but none is
First of all i have frames on my SD Card and frames are there
First of all i have to clear few things 1.This is not spam group
So first of all I have such image (and ofcourse I have all points

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.