google-analytics

Simplest way to inject google anayltics tags into arbitrary pages?

I have a directory full of hundreds, if not thousands, of html and PHP files that I'm hosting for a client. They currently include no google analytics tracking tags, but we'd like to add them -- ideally without actually modifying the files themselves. What's the best way to do this? I'd imagine I'd want to redirect all requests for *....

Google Analytics & iFrame

Hi Guys, So I have a simple page and when a user clicks on a link an iframe opens. I am trying to use the http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55527 pageTracker._trackPageview('/outgoing/example.com'); Inside the iframe - but it seems that its not working ? I have read this page code.google.com/a...

Google analytics database design

Hi everyone, I was wondering about the Google Analytics database design, how they handle the huge values in hourly basis, even in minutes. Let's say, they have 100 million users and almost every user has 300 counters at every minute. For one user, 300 counters have 18000 rows in one hour. For one day it is 432K rows and almost 3 millio...

Creating a "Google Analytics" Like Site Overlay

Hello, I am trying to create a site which uses similar technology to that of Google Analytics Site Overlay, but will be framing my own site. I may decide later to change the type of overlay (or eliminate it entirely), so using overlay instead of directly modifying the source pages is the only option I am considering. For now, I am als...

Confusion over Google Analytics (GA) Absolute Unique Visitors data

GA Unique Visitors data isn't making sense to me. From the GA FAQ we get the following definition for 'Visits vs. Visitors' "The initial session by a user during any given date range is considered to be an additional visit and an additional visitor. Any future sessions from the same user during the selected time period are counted a...

Google Analytics: _trackPageview without page refresh?

Hi I'm reworking some site tracking for a site I'm working with. For the tracking we are currently using Google Analytics, which seems to be working fairly well. However, I'm having some troubles resembling the ones in this question, but it's old and no one answered, so I'm bumping a bit here. :) Basically, I'm tracking two kinds of th...

Add identifier to browser bookmarks

Is there a way to automatically append an identifier to a page URL when it is bookmarked in the browser, perhaps something in the document head that gives the browser a directive or an onBookmark JavaScript type of event? I'm looking for ways to further segment my direct traffic in Google Analytics (if you have other ideas for doing that...

How could I programmatically trigger google analytics events without a browser?

Background: We receive non web based events (like SMS) to our server, it would be nice to be able to track them via analytics. I have thought of several solutions, but am not entirely happy with any of them. Hack together the analytics url and post it using from the server. Unsure if this would work as there are a lot of unexplain...

Exposing variables to Google Analytics

Hi guys, I am trying to find out whether I can expose my own variables to GA? I want to expose things such as a user's username or more importantly the type of user that logged in. For me this is an important component for the following scenario: I want to know what type of users log in the most over a period of time. What features do...

Google analytics in Flash CS4

I'm trying to track the events on a site created using Flash CS4. I've tried using the method google is sketching on their page, though it is intended for CS3. The problem is that the component from gator flash does not show up in my component panel after following the instructions, so I can't get it onto my stage. Know why? Is there an...

Google analytics api

I would like to have a div on my companies website that is filled with links to our most-visited pages dynamically by querying our google analytics account. From everything I've been looking at in the DataExport API though, it seems like the user viewing the site has to authenticate. Am I missing something? ...

Joomla Site Overlay

Does Google's Site overlay for analytics automatically work for Joomla!? If not how can I make it work. ...

RegExp alternative to negative lookahead match for Google Analytics

I'm setting up some conversion funnels on Google Analytics. One is to analyse traffic going from the main site to a secondary promotional site running on a virtual directory (on the same domain though) I should add, this is a setup form in Google Analytics, I can't using another other code (PHP, JS, C# etc) and it has to be done in one ...

Google Analyics doesn't track links generated with AJAX

I run a website that has lots of affiliate links. These links are loaded via AJAX. I'd like to be able to track outbound clicks on these links. The standard approach to using Google Analytics to track links is to use the pageTracker._trackPageview() function. I've tried this to no avail. Here's my code: <a href=<?php echo $link_loc...

Does google analytics combine naked domains with the www subdomain?

I have google analytics installed for my own domain, http://mydomain.com. Will a user that enters http://www.mydomain.com be counted by the analytics script too? To me it seems logical that it would, since it is so common to have the naked domain address be the same site as the www-prefixed one, but the analytics documentation doesn't ...

"Easiest" way to track unique visitors to a page, in real time?

I need to record in "real time" (perhaps no more than 5 minute delay?) how many unique visitors a given page on my website has had in a given time period. I seek an "easy" way to do this. Preferably the results would be available via a database query. Two things I've tried that failed (so far): Google Analytics: Does the tracking/repor...

Google analytics page name

Hey guys, Is it possible to use another name for the page that is currently being tracked instead of the url. The reason I ask is that I have not implemented friendly url slugs instead we have Products/Details/100 or whatever the page is called. So when you login to google analytics you can see 10 000 hits on Products/Details/100 but y...

Android: What does this google analytics dispatcher warning mean ?

Im using google analytics to track the user in my android application, but in my log i keep getting warnings like: 10-22 14:44:08.879: WARN/googleanalytics(1266): Dispatcher thinks it finished, but there were 56 failed events Anyone knows what the problem can be? Im using a correct account key? Has somebody solved the problem with t...

Google Analytics pageTracker function doesn't work when loaded via AJAX

I posted on this a while ago, and have since done more research and advanced the problem, but I still don't have a solution... I have a site (www.seatgeek.com) where a lot of links are loaded via AJAX. When a user clicks on one of these links I want to count it as a goal, so I've tried attaching pageTracker._trackPageview() to the link...

Google Analytics Retreive data

In one page on my personal site, I like to be able to see some data get from Google Analytics. I like to have a list of all my site and the average visitor per week or per month over the current year I have check some solution: Yahoo Pipe (look complicated) Google Analytics PHP API class(look nice) Google Analytics API (look official...