google-analytics

google analytics at head? or end of body?

after signing up google gives me a piece of javascript and tells me to include it in the head. Can i put it at the end of body or will some side effects occur if i do that? ...

When should the Ecommerce tracking take place?

Hi all, I am implementing Google analytics onto a ecommerce site. We are already tracking events like adding to cart, removing etc using the event tracking. I would like to know what is the ideal time to use the ecommerce tracking apis (addTrans & addItem). Here are my questions: Should I call these functions for each product being ...

Google Analytics... pretty easy question about tracking subdomains

Hey folks, This is barely even a question, I'd just like someone to confirm this for me! :) Google Analytics has generated my tracking code for the subdomain sub.mysite.com. A line of the tracking code looks like this: _gaq.push(['_setDomainName', '.mysite.com']); Do I need to change .mysite.com to sub.mysite.com? The tracking code p...

Uncaught ReferenceError: pageTracker is not defined

Hello folks! You'll have to forgive me on this one. I understand that the issue is probably very simple, but I'm not a JS coder and am only just starting to get to grips with jQuery. So I have a jQuery Ajax call in $(document).ready: $('#newesttab').click(function() { $('li').removeClass('selectedtab'); $('#newesttab'...

is this script good enough for Google Analytics to track E-commerce on my site?

I'm trying to track e-commerce happened on my site with Google Analytics, while I put this https://gist.github.com/452437 right before the closing head tag, but I can see nothing from Google Analytics about the purchase happened on my site, I've already waited for over 24 hours and I indeed did several purchases on my site. Any idea? Tha...

How do I qualify my Analytics stats factors like the different length of months

For example my stats for Feb will always be wack when compared to to July because of the extra 2 or 3 days. How about weekends? My website's customers are office based so weekends are virtually zero, so how do I qualify the stats for a month with 5 weekends (like May). What about know holidays? I know working on a four weekly basis ...

What Google Analytics information do you find most useful?

I'm working on a google analytics dashboard for a CMS I've created. I'm trying to decide exactly what information to display to the user. So what information would you want to see at a glance (when you first log in) and what information would you want access to, but don't need to see every time you log in? ...

Analytics for website traffic

I don't like using external code or services for anything, prefer in house. Instead of using Google analytic what other page tag analytic frameworks can we use to install on our system for traffic analytic? Or how hard is to build something in-house only for our website? It's a social website and would like to customize it to even track ...

Real Time Javascript Event Tracking (Javascript Stats)

There are lots of real time web stats services on the web (w3counter-histats-gostats).They just count once when page is requested , But what I want to do is track javascript functions/events, because my website is fully-ajax.So I want something like google analytic's event tracker (http://code.google.com/intl/en/apis/analytics/docs/gaJS/...

REGEX Match a String

Hello Experts, Given the following URIs sample: /index.site.rooms.98.html /index.site.rates.665678.html I need to capture the string which identifies the page with REGEX: Rooms Rates Thanks ...

Can i remove Google Analytics e-commerce transaction from the the web interface?

I want to remove some erroneous transactions from the Google Analytics Ecommerce page (https://www.google.com/analytics/reporting/transactions), how could I do that? Thanks a lot. ...

get infos from __utmz Google Cookie and send it via Email

Hi I got a ASP file and would like to get infos from __utmz Cookie and forward it with mail. I use this code: <script language="javascript" type="text/javascript"> // // Get the __utmz cookie value. This is the cookies that // stores all campaign information. // var z = _uGC(document.cookie, '__utmz=', ';'); // // The cookie has a numb...

Google Analytics in Android app - dealing with multiple activities

I was pretty excited to see how easy it is to set up Google Analytics with my app, but the lack of documentation has me sitting with a few questions. The only information that I can find is right from the documentation here, which only looks at reporting PageViews and Events from one Activity. I want to report PageViews and Events across...

Tracking clicks using google analytics

I am using Google analytic on my web site.I have the following script in the head section of my page - <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-17301453-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.a...

How to remove the transactions from Google Analytics Ecommerce?

I have made several test orders and they are tracked successfully by Google Analytics Ecommerce. For now, I want to remove one of the orders and I take the advice from http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&amp;answer=75012 , here's the snippet I composed http://gist.github.com/471505 , I saved it in a .html fi...

Mysterious "_gaq is not defined" error... _gaq isn't even referenced anywhere on the page!

EDIT: This question is solved, but I can't accept my own answer just yet. Howdy! So I've got a PHP/CodeIgniter webapp. I've got some custom Ajax-based tracking code inserted into my page - however obviously, for testing purposes, I don't want this code to fire when I'm running the site locally on my development computer. In order to a...

Save GA snippet to a .html and open it with browser will send the data to the GA?

I'm wondering if only saving the GA snippet into a .html file and opening the .html file with Firefox will send the data to the Google Analytics. I tried, but seems it doesn't work. If that's the case, how could I generate the negative order according to the instructions from http://www.google.com/support/googleanalytics/bin/answer.py?h...

RuntimeException from Google Analytics for Android "sending message to a handler on a dead thread"

I am using Google Analytics for Android to track events, page views on an Android app. When calling the tracker's dispatch method, I receive a RuntimeException: 07-12 18:02:05.594: WARN/MessageQueue(12823): Handler{44a08620} sending message to a Handler on a dead thread 07-12 18:02:05.594: WARN/MessageQueue(12823): java.lang.RuntimeExce...

Google Analytics funnel goals not working?

I have a goal set up that is roughly as follows: product page -> first page order form -> second page order form -> thank you page I have checked the regex for all of the above by searching the filters in Top Content and have checked over all of them a few times. On the funnel visualization page, every number listed is zero. On the go...

Disable Google Anayltics cookie from being sent to cookie less domain

To optimize my site i have set up a static subdomain for content such as images, css and javascript. How do i stop the google analytics tracking cookie from being sent to my static subdomain, but still to both example.com and www.example.com? Have already looked through some of the documentation with no luck ...