google-analytics

How to trigger Google Analytics from code?

My app reads an (html) file from my website, and I would like to track accesses to that file using Google Analytics. As the GA Javascript does not get executed when reading the file, it is not tracked. Is there a way to trigger GA directly from code or alternatively, to execute the Javascript from a .NET app without adding a bunch of dep...

Google anlytics code doesn't track ajax generated page

Hi In my site we have only one default.aspx page and we renders each htm pages into default.aspx. now we have added google anlytics code into each htm pages but google analytics report only shows one page default.aspx in tracking. anyone can help on this how we can track for each page? Thanks in advance. Regards, Sagar ...

Website Analytics - haveamint.com or Google Analytics?

Is there a comparative analysis available for Mint and Google Analytics which can help me decide which one to implement in my situation? ...

Google Analytics Alternative for a Rails Application

I am working on a project using Ruby on Rails and I need to monitor web requests to generate traffic analytics (hits, unique visitors etc), but I have been instructed that using an external service, such as Google Analytics, is unacceptable (don't ask me why, I may break down and cry). I can however, use a plug in or anything else which...

Load Google Analytics from jQuery document ready?

The problem is that GA sometimes takes a little while to load, and my jQuery ready() functions don't run until it's done. I'd like to move the GA code itself to the end of the ready() function. I'm not looking for extra click tracking integration - I just want my ready() scripts to run first. My questions are: 1) Will moving the GA cod...

Google Analytics is counting less than half the number of visitors to website

Google Analytics confuses me. I have always had a feeling that the Google Analytics visitor count for my eCommerce website was too low. Today I took a closer look. Last weekend there were about 8 orders (by different customers) on the website on Saturday and 9 on Sunday. Google Analytics however shows only 3 visitors on both Saturday a...

Can I filter out my traffic in google analytics?

I have a site running Google analytics and I end up being a large fraction of the traffic to it (like 1 of the 2 hits per day). Is there any way I can set it so that my browsing doesn't skew the numbers so much? I'd be happy if it just didn't record anything for accesses that are logged in as my Google account. ...

How does google analytics collect its data?

Yes, I know you have to embed the google analytics javascript into your page. But how is the collected information submitted to the google analytics server? For example an AJAX request will not be possible because of the browsers security settings (cross domain scripting). Maybe someone had already a look at the confusing google javas...

Google Analytics - Blocks HTML/page rendering

I have used the "Better Google Analytics JavaScript that doesn’t block page downloading" to load Google Analytics dynamically so that it will not block HTML / page rendering. However, it appears occassionaly that my HTML page will block rendering on the Firefox 3.0 (WinXP) status message states: "Transferring data from www.google-analy...

Goals & Funnels

Hi , I have only page (default.aspx) in my site and i want to configure that page in Google analytics's goals & funnel . can anyone help me that what i have to do to configure to achieve goal ? Regards, Sagar ...

Is anybody happily using Google Analytics with big websites? (million+ pages, million+ monthly visitors)

I was a happy customer of Google Analytics starting from the Urchin times. But something strange happened a few months ago and GA started showing a fake URL called "(other)" that is credited between 5% and 45% of all site traffic. I've tried filtering out some URL parameters to reduce the number of pages. Currently GA shows only 150,000 ...

Track campaigns with Google Analytics without query string parameters?

Is there a supported way in Google Analytics to track a campaign without having to use query string parameters. In Analytics you can tag a link to your site with query string parameters such as utm_campaign and utm_medium which carry information about the campaign so that they can be tracked. Google actually has an online tool to help ...

Approaches to overriding Google Analytics _trackPageView using ASP.NET

I'm working on a site that uses Google Analytics. On most of the pages the default call to _trackPageView() that records the page view in GA using the current URL works just fine. I can add that code to a master page so it is included on each page. However, under certain circumstances I want to override the name of the page that get...

MapReduce implementation in Scala

I'd like to find out good and robust MapReduce framework, to be utilized from Scala. ...

how does google analytics calculate metrics like "average time spent" ?

how services like google analytics calculate parameters like "average time spent" "number of users that came to the website via search Vs user that hit the url directly etc. I would imagine that google can easily record a HIT when someone clicks on a link in serach result. But after that how long and deep the user is brwosing that per...

Filtering by country using Google Analytics Data API

I'm trying to use the Google Analytics Data API to get data filtered by country. I am using the .NET library at http://google-gdata.googlecode.com/svn/trunk/ which works beautifully as long as I don't try to filter by country. This works fine: const string dataFeedUrl = "https://www.google.com/analytics/feeds/data"; var query = new D...

Generate Google Analytics events (__utm.gif requests) serverside

Hi, I am willing to use Google Analytics to track stats about usage of my Client/Server application (no Browser on the user computer!). So I guess if anyone ever tried to craft requests to __utm.gif from serverside code. I have found some information on the request and relevant cookies at google website but there are no details on the ...

How to relate ga:campaign and ga:pagePath (content) on Google Analytics Export API?

Using custom reports you are able to drill down on a specific campaign and then choose the Landing Page or content page that the individual visitor choose. When I try to retrieve the same information through the Google Analytics Export API, I get an error if I try to relate those two dimensions in my feed. Is there any success story ab...

Easiest way to track search terms with Google Analytics?

My last question was somewhat narrower than this one. I am interested to know how to track search terms in general. How would you install Google Analytics to simple form with a submit button (assuming there is only one field)? ...

Position of Google Analytics code

The Google Analytics setup instructions state: This tracking code snippet should be included in your site's pages so that it appears at the bottom of the page's HTML (or generated-HTML) structure, before the closing <body> tag. Does their code snippet require this placement to function fully, or does Google suggest this sol...