mHelmy
Nov 4 2007, 04:36 PM
| | Are there any different tracking results when placing google analytics tracking code at the beginning (after <body>) or at the end (before </body>) ?
I post this question because I think a heavy site will load slower so it can be failed to load all site's contents and GA tracking code at the end of the site will not be loaded and it will affect the counter.
Any experience about this ? |
Reply
vujsa
Nov 5 2007, 03:12 AM
Well, I started using Google Analytics three days ago since my built in web stats component is using a very large amount of space in my database. I wanted to find a way to replace it and save the space used so I signed up for Google Analytics. I did as suggested and placed my tracking code right before </body>. There is a very large difference between what Google shows my traffic as and what my built in system. For example, yesterday, my built in system told me that I had 2684 page views (not visitors but actual page loads) but Google only shows 773 page views. I checked the server logs and found that 2684 was the correct amount. Maybe I'll try placing the tracking code at the beginning of the page instead of the end and see if it helps. I would have to say that other than the fact that Google Analytics is incapable of providing accurate statistics, the tool does offer a lot of insight to traffic patterns on your website. The bounce rate alone tells you whether or not the content on your pages is useful or not. Having a better idea of where your visitors come from and a clean organized way to view your stats is priceless. vujsa
Reply
Chesso
Nov 5 2007, 04:21 AM
Wow that sounds good, I haven't heard of this yet. But that is a nasty little innacuracy. I would probably contact them and explain it, there might be a good reason why.
Reply
mHelmy
Nov 5 2007, 05:52 AM
and by the way, google analytics tracking code is a javascript code. so it won't count traffics from non-javascript browser. I also have built in wordpress statistic using a plugin, and it records all traffics. But I heard there are some visitor tracking softwares in cpanel, maybe they can be more accurate. From replies above, google analytics seems useless. But look at html page source of this forum, google analytics tracking code is placed right after <head> tag...
Reply
Chesso
Nov 5 2007, 06:14 AM
Oh right that makes sense about the JS code. Is there not an alternative method that is more reliable? Can PHP be of any help possibly?
Reply
vizskywalker
Nov 5 2007, 08:04 AM
One thing to remember is that Google Analytics (I believe) uses a slightly different definition of "page view" than we do. I'm not sure why, but it's the only thing I can think of for the discrepancy. I've been the only person (pretty much) looking at my site while it undergoes development and testing, so I know very well how many page views there are, upwards of 100 because I keep refreshing. Google Analytics doesn't count many of these as separate page views, instead, it seems to simply keep that count as time on the page. So perhaps for each visit, a jump from homepage to another page back to homepage counts as 1 view, since it is one person viewing the page on one visit, even though it is two loads. I think that is how the calculation is done. It doesn't seem to be total page views, but visits to that page. Also, I haven't noticed a difference depending on where the code is placed. I agree that the end is best, because it doesn't cause a slowdown of the page loading. Edit: I just stumbled across something on the Google Analytics help that confirms this. QUOTE(Google) In Analytics, if a user comes to your site twice within thirty minutes without closing their browser, they'll register as one visit. Other web analytics solutions may treat this behavior as two visits, depending on their definitions. For the full article, which explains in pretty good detail differences between analytics and other stat generators, see this help page. ~Viz
Reply
Chesso
Nov 5 2007, 08:39 AM
Ahhhhh yes that would certainly make sense. Although it slightly complicates the data lol.
Reply
ethergeek
Nov 5 2007, 05:47 PM
I always put my GA track code at the bottom of my pages...the reason being, is that I don't want the script load tying up my page load on browsers that don't pipeline and evaluate the JS before building the DOM (most mobile browsers). I've noticed that the GA code can sometimes be very slow to load...and if it makes the page unusable, then all GA is gonna see is the visitor that won't ever come back
Reply
Arbitrary
Nov 23 2007, 11:46 PM
QUOTE In Analytics, if a user comes to your site twice within thirty minutes without closing their browser, they'll register as one visit. Other web analytics solutions may treat this behavior as two visits, depending on their definitions. Ohhh, now that would explain very well the huge discrepancy.  I was thinking that there couldn't be a few thousand visitors to vujsa's site that disabled javascript or didn't load the page up to the beginning of </body>. So basically Google Analytics only registers unique hits rather than all hits. I suppose, though, some people may find it more useful for Google Analytics to register both unique and all hits just so they can see the differences. QUOTE Can PHP be of any help possibly? Yeah, if you were doing it on your own server, you could definitely use php to keep track of hits. But Google can't since it's doing it from theirs. They basically have to use javascript because they don't have access to your server. Which basically means that their hits would be off by a bit (probably not that much off since not that many people actually disable javascript.) QUOTE Are there any different tracking results when placing google analytics tracking code at the beginning (after <body>) or at the end (before </body>) ?
I post this question because I think a heavy site will load slower so it can be failed to load all site's contents and GA tracking code at the end of the site will not be loaded and it will affect the counter.
Any experience about this ? While this may be possible, I don't think it's all that likely that it would actually happen. But just in case, it's probably better to put the code at the beginning of your site just in case.
Reply
muztagh
Dec 10 2007, 08:10 PM
I have found a tip on the web and tried it and the page load became faster. The tip is host the "urchin.js " file locally means download it from the google website and upload it to your web server, and do not forget to update the link in the google analytics tracking code. Before it is "www.google-analytics.com/urchin.js" now it should be "www.yourdomain/urchin.js". The reason behind this technique is some times google analytics website may be very busy and loads the urchin.js file very swlowly on your website but if you place it on your server it will be downloads at the same time with your webpage and does not effect the speed. I found it extreamly conving especially for websites hosted far from google data center.
Reply
Recent Queries:--
tracking-code shtml - 23.55 hr back. (1)
-
google analytics position tracking code - 42.15 hr back. (1)
-
tracking video in google analytics - 63.22 hr back. (1)
-
how to load google analytics code slowly - 63.58 hr back. (1)
-
where does tracking code go google analytics - 110.24 hr back. (1)
-
position google analytics code - 160.09 hr back. (1)
-
google analytics tracking code can go in head above body - 181.73 hr back. (1)
-
how to add google analytics code in friendster? - 189.95 hr back. (1)
-
google analytics tracking code end of page - 203.54 hr back. (1)
-
google analytics msn spaces - 236.16 hr back. (1)
-
google analytics script position - 262.28 hr back. (1)
-
position code von google analytics - 274.74 hr back. (1)
-
where to keep google analytics track code? - 280.19 hr back. (1)
-
page tracking using urchin.js when page is a pop up - 310.91 hr back. (1)
Similar Topics
Keywords : google, analytics, tracking, code, position
- Google Calendar Question
(4)
Google App Engine
free server for your web app (1) Well today I bring you another google app, which can be very helpful for starting developing web
applications with python, but I won't recommend on putting your company on google's hands.
Google App Engine is platform for building and hosting web applications on google ....
Google Apps
(1) Well I suppose many of you know this feature about google, but for those who don't this will be
very helpful because this feature lets you among other thing, create email accounts with
whateveryouwant @yourdomain.com for free.
What is most important is that you use the
GMail interface to your account, and you can even change some things, like the pictur....
Is The Sandbox Only For Google?
Does the sand box affect yahoo, msn? (0) Does the sandbox effect prevent yahoo and msn search engine rankings as well as google rankings?
Because my site was on the first page for it's targeted keyword on msn and yahoo. But now my
site url can't even be found in yahoo. It says that such an url does not exist! Do any of you
know the answer to this? If so share your views.....
How To View Live Traffic Cameras Using Google
(3) >Go to http://www.google.com >In the search field, type "inurl:view/index.shtml" (without the
quotes) >In the results, you can click any one of them to view a live traffic camera. This
is very fun if you are REALLY bored. Have fun! /smile.gif" style="vertical-align:middle"
emoid=":)" border="0" alt="smile.gif" />....
Geocamming On "google" .....look At What They Are Watching........
(2) http://www.hackaday.com/2005/01/14/geocamm...eras-revisited/ don't let the link name scare
you..........hackaday is a great site.......... and one of the coolest things ever is GEOCAMMING on
"Google"......this link will teach you how to surf the unsecured web cams of the world.......nothing
to it really and it is a great time killer.......... you'll see department stores, colleges,
airports, beaches, bars, pools, docks, lions, tigers and bears........factories.....you name it it
is there, and some cams you can control...... coolset thing I saw was a wedding....
Google Servers
Do you ever wonder about what kind of servers google uses and why they (2) Do you ever wonder about what kind of servers google uses? Or why even though with all those
searches per second (over 1000 times every second) they dont lagg? I was thinking about it and
Google must have some monster servers like astahost does. After some research i found this:
Google's server infrastructure is divided in several types, each for a different purpose. Google
DNS Servers answer the DNS requests and serve as intelligent, worldwide load-balancers. They guess
the data center nearest to the user to speed up all HTTP requests. Google Web Servers coordinate....
My First Google Error
(8) Today in computing at school! We were using google. We typed in ''Poll scripts''
It came up with a pop up saying ''Sorry Google does not currently allow this
search'' I then clicked refresh & it worked! Have errors happened to you ....
Do You Like Google?
Do you like google? (32) I want to see how many people like google! people say google is the best people say yahoo is the
bomb people like to say google "blah blah" not yahoo "blah blah" i like yahoo better! vmkrightpoint....
Does Google Provide This Tool?
(9) I am interested to know if there is a tool does this I can pretend a user from NY and search a
keyword in Google and i want to see the search results Then i want to search the exact the same
phrase and pretend to be a user from Canada, i want see if the search results are different PS: I
just want to test my keyword ranking for SEO purposes. Any ideas?....
Tips To Earn In Google Adsense
(7) This is not mine but i will just share this. -------------------------------------------------- Earn
easy with google adsense works 100%.Try these it will work and u will get 4$ to 8$ to these word
search. * Add google search box in your site *Then goto google search box type forex *Then click
search button then it will prompt you 4 or 3 ads by google at the TOPLEFT of your screen. *Right
click and open those there or four ads. *wait for 1 hours then login to your adsense account will
find 4$ to 8$ amount. Note while you search and click use proxy or use different ....
Do Google Search Better Than Yahoo?
This is a question for you all google users!! (15) Do you think google search is better than yahoo?? Are they have similar search?? Well for me google
search is more effective than yahoo search engine.....
Google Wants You To Share Stuff
(4) Google has entered the social bookmarking market with a new product called Shared Stuff. Shared
Stuff is simple enough; users drag an "email / share" button into their browser, and click it when
they want to add pages to their Shared Stuff profile. Links can include an image, text extract, and
/ or a user comment. The results can then be viewed directly, via iGoogle or RSS.
http://www.google.com/s2/sharing/stuff
http://www.techcrunch.com/2007/09/20/googl...to-share-stuff/ ....
Submit
Submit my site to google (3) how i can submit my site to google ? /biggrin.gif" style="vertical-align:middle" emoid=":D"
border="0" alt="biggrin.gif" />....
Fun Answers Google Will Give You
(10) What happens if you type the text below into Google's search box? answer to life, the universe
and everything Note this is the same calculator that knows how to do basic arithmetic and knows
how to convert pounds to kilograms, feet to meters, miles to kilometers, Fahrenheit to Celsius, etc.
For more Google fun, check out this video: http://www.collegehumor.com/video:1766563 ....
Google Launches Us Wireless Crusade
(0) Google is flirting with yet another effort to offer unfettered internet access over American
airwaves, and as usual, it's facing endless back-and-forth with the FCC.
http://www.theregister.co.uk/2007/09/05/fc...comment_google/ ....
Google Problem
(5) hi today i got a problem while try to use google when i open google, a sorry appears as follows:
QUOTE We're sorry... ... but your query looks similar to automated requests from a computer
virus or spyware application. To protect our users, we can't process your request right now.
We'll restore your access as quickly as possible, so try again soon. In the meantime, if you
suspect that your computer or network has been infected, you might want to run a virus checker or
spyware remover to make sure that your systems are free of viruses and other spurious ....
Removing Information From Google Search Engine
(8) I just searched my name and I found a couple of sites I had made some years back and I want to know
if there is a way of how to remove this information from Google search engine. All of them were
submitted automatically from blogging sites I use...like for example: Friendster, MyPetsPages...etc.
....
Google Webpages!
(16) Hey guys google just made a place that you can make your own website for free but really dont take
much html and stuff and only 100MB of space. If you want check it out at www.pages.google.com >> you
need to loging ( you need to make an account if you dont have one alread )....
Google Restricts The Search Results
(10) I usually hunt for information by searching for the information on various topic of my interest. I
usually use Google and Live for searching and occassionally Yahoo and AskJeeves. The strange thing
I found in Google is that I dosent allow me to view the search result beyond 1000 reaults. I dont
face this in other browsers. I got the following message when I went further beyond the 50th result
page, CODE Sorry, Google does not serve more than 1000 results for any query. (You asked for
results starting from 980.) I knew that google had this restriction on the t....
Google
Google criteria (3) Google is certainly the best in the buisness -no manipulation-But I want to share some contrarory
concept.With all due respect to google,I don't know why google is giving such a low grading to
one of the finnest web designing company in the world quality wise for sure,I really miss a huge in
my personal flash website if I doesn't opt for MSN in time. You shall visit
www.webdesigningcompany.net and see the designing bonanza. .Ofcourse there are lot many better but
only point is that I never try them. ....
How Long Does It Take To Be Listed On Google?
(15) How long does it take to be listed on google? I have uploaded a sitemap. The site still hasnt been
listed on google. /sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" />....
Google- Changing The Search Preferences!
(3) If you want the google site to block more sites, then you will need to go onto the google site. Then
go onto preferences. There you can change alot .For example the language it should search for only,
or if the result window should be seperate, or how many results should be displayed per site. This
window to change preferences is very useful! Have fun!....
SiteAdvisor: Search Engines Take Users To Spyware Sites
Google , Yahoo, MSN Search (11) According SiteAdvisor research, 5% of searched queries result in a search engine may cause damages
to useres and users computers. A report about "Online Search Security" says that none of these Web
portals show 100% secure results. The Accurently results was from MSN that only showed 3.9% of
malicious websites, followed by Yahoo with 4.3% and the world largest search engine , Google , in
third along with AOL with 5.3%. Portals like Google, MSN and Yahoo redirect useres to spyware sites
witch sent Spam and invade the computers, all this according to SiteAvisor. ....
Google - How To Hit The Top
SOE technics, suggestions, links (13) Hi guys, I spent some time browsing web and searchnig for quick way how to speed up
my way to the top. There are my 3 suggestions: 1) Find the right key words find
the phrase1 Try google suggestions 2) create a clean 1-4 page web site. Register domain
with the keyword you found (asset-management-free.com). Make sure there are no HTML errors on
your pages. Use some idiot-proof tool like topstyle If you like firefox there is the best tidy
HTML extension. You can check your HTML. Tidy HTML - free 3) find as many web....
Google Suggest (beta)
New Google's Search Auto-Complete Feature... (12) Lately, Google has been producing so many useful tools and utilities, not to mention its amazing
search capabilities. Many of those new tools pass through a long phase of BETA testing to ensure
that they reached their optimum usefulness and are ready to be put to use by the masses. So now,
Google has released a BETA version of one more tool, called Google Suggest!... You know how many
of today's Web browsers have an auto-complete feature, where you type a few letters and that
application tries to recognize the phrase you're typing and complete it for you? W....
Rate Google On A Scale Of 1-10
Rate google (59) Rate google! 1-10 1=omfg it sucks 10=OMFG best ever! then explain why My vote would be 9! I love
google in every way! Soo many sites no popups! Right on for what you need! Never fails me! Infact
got to here from google! Topic title edited to reflect nature of content better. Please make
your topic titles as descriptive as possible. ....
The Hacker's Google
A template for the SE - can you read it? (29) I bet many of you have seen the 1337 language? Well, I also bet most of you guys (or gals)
haven't seen this! A new addition I found while ago... Google - H4x0r Don't read ahead
if you want to try reading what it says in there!! . . . n0rM4L s34rCh = normal search 1|\/|4935
= images 6r00pZ = groops (groups) - this is a little tricky because the '6' is a capital
'G' and the two 'O's make a long 'O' sound d1r3c70rY = directory 4|| 480u7
Google = all about Google 4DV4NC3D 534RC|-| = advanced search PR3F3R3N(3Z = preference....
The Bad Side Of .....google
things you never heard (50) i have just came accross this website, and it shows all the truths and theories about google. im
shocked that google have never deleted anything at all "since day one".! this can mean when you
delete anything on the gmail server it aint actually deleted. it is still saved on the google
server. it also states that google actually atmitted to the savings of all documents! also theres
cookies in your browser, so if you make a search on their search engine it tracks down what you
search for and saves it! is the saying and reality tv shows coming true... big brother? then ....
Google Webspace
Google Web Space (21) I have heard rumors that Google might be offering webspace to customers. I haven't read any
articles about this. I merely stumbled upon it while reading something. If this rumor is true, what
do you think Google will offer if their webspace just happened to be free? I personally think they
will eventually expand into this industry. Google has made it's way into Froogle and Gmail.
It's likely that they will end up giving out free webspace. Yes, I know, they do offer blogs
already!!....
Looking for google, analytics, tracking, code, position
|
*SIMILAR VIDEOS*
Searching Video's for google, analytics, tracking, code, position
|
advertisement
|
|