google-analytics

"Target feed is read-only" in Google Analytics API using PEAR HTTP_Request2

I'm trying to fetch all profiles for some Google Analytics account in PHP. I'm using HTTP_Request2 class from PEAR (with cURL adapter, but I've also tried with Socket) and I keep getting "Target feed is read-only" error when I try to fetch data from https://www.google.com/analytics/feeds/accounts/default I'm using ClientLogin auth metho...

logging incoming traffic from google Sponsored Links clicks

hello to all, a client asked me to write a script that will log visitors reaching hs site via google adds (Sponsored Links). the idea is to keep track of: 1.users' ip 2. what add they clicked 3. what key words they submitted in the Google search that led the them to the result page in which that add was displayed i will attempt that in...

Analytics API to check which bot visited

Does anyone know how to find out which bot visited your website/page using google analytics API and .Net ? ...

Can I Set Google Analytics to Ignore Certain Sources or Locations?

Basically, I'd like my Google Analytics results to ignore me! Thanks, as always. ...

How do I let a user add Google Analytics to a page deep within a site?

Each user on my site has a "section" of their own at a part like /user/20 I want each user to be able to specify a Google Analytics code, e.g. UA-12345-6 and have that Google Analytics code placed at the foot of every page. That is fine and I can do that no problem. How will each user set up their Google Analytics code though? When th...

Setting up Google Analytics for a Google Code project, how long until the tracker has been registered?

I know this can be a gray area question, and might be migrated to Superuser, but I think that the most people I can find that has done this will be here, due to one of the sites in question being Google Code. I am trying to set up Google Analytics for my new open source project hosted on google code, but I cannot get the tracker to be n...

Web Analytics for Platform with Custom Events

Hi, I'm building a platform that produces websites. Think wordpress.com as a similar example. Each site is going to be a subdomain of my domain like abc.mydomain.com or xyz.mydomain.com. I have a few requirements for analytics of which I haven't been able to meet all of: I would like to be able to see both stats for individual sites...

Verifying goal setup properly in Google Analytic ($index = goal value)

I have Google Analytics setup with a goal. The goal has a Goal URL thankyou.html and a goal value of $1.00 When I check my content report should the $index value of my thankyou.html page be $1.00? ...

Mobile Analytics and Server Side Requests

I'm looking at different mobile analytics packages and most of them seem to do http requests back to the analytics server from the server that is delivering the content to the mobile. This seems strange and I don't understand why an image isn't just served up to the mobile which points back to the analytics server with all the data requi...

Track custom firefox search engine with google analytics

I made a custom Firefox search engine. It used the code below. Is it possible for me to track the use of this on the site. My concern is that searches form the firefox search engine will look like direct visits in google analytics. I would like to tag the searches or some other solution. I kinda hacked this together i.e. a newbie at this...

Are there any drawbacks of "asynchronous tracking" with Google Analytics?

From an old answer I have recently learned that Google Analytics, besides the traditional tracking code, offers so-called "asynchronous tracking". From the documentation, it seems like asynchronous tracking is to be preferred over the traditional tracking: Unlike a traditional installation, asynchronous tracking optimizes how browser...

PHP array keys - how to display?

I'm doing some work with a Google Analytics class. I get output as below: Array ( [20090401] => Array ( [ga:pageviews] => 5000 [ga:visits] => 2500 ) [20090402] => Array ( [ga:pageviews] => 5000 [ga:visits] => 2500 ) etc. How do I get the data to d...

Google analytics - Tracking events that happened in the past

Hi, Let us say I have a log file that has events that happened in the past. Now for some reason suppose that I am not able to track those events in real time using GA but want to do it at a later point of time using some kind of batch processing. Can I somehow add those events to GA and also keep the original time the event occurred. T...

Firefox "Bad request" caused by corrupt google tracking cookie

Hi there, We have an issue on our site whereby some Firefox users are receiving a "Bad Request" message when they visit our site (nothing else, just the words "Bad Request"!) This would appear to be due to a corrupt google tracking cookie, possibly __utmz (one person delete the google cookies in turn and once that one was removed the s...

Google Analytics not tracking transactions

I'm having trouble getting Google Analytics to track transactions for commerce. Here's the code I'm generating on my order confirmation page. I don't know how to debug this either, I can't find information on how to get error codes out of google's js. I'd run it in firebug's console if I could. At this point I'm stuck on how to proceed....

Is there a way to automate Google Web Optimizer approvals?

Google Web Optimizer uses URLs for its A/B testing experiments. In addition to the production URL, we also have several pre-production environments. Releases of software are pushed out. We're only running our first experiment now, but we've set up five experiments in GWO -- one for each environment (and thus URL). It's a bit of a pain ...

google analytics code is not recording the traffic?

One of my client's site's google analytics code is not working. What is the problem in this code? <script type='text/javascript'> var gaJsHost = ((&quot;https:&quot; == document.location.protocol) ? &quot;https://ssl.&amp;quot; : &quot;http://www.&amp;quot;); document.write(unescape(&quot;%3Cscript src=&#39;&quot; + gaJsHost + &quot;...

Google AdSense Conversion Tracking with AJAX form

Hey everyone! I have a google adwords conversion tracking code that I need to implement basically on an onclick event. The form I am tracking submits information using AJAX and then renders a Thank you message to the page by replacing the form's div with the thank you HTML ( $('div').html("thank you....., etc"); ) I'm wondering if t...

Does anyone know how google analytics processes data?

Anyone have any idea or know of any articles that discusses how google analytics stores and processes the data that comes in from the urchin calls? Curious about the architecture. thanks! ...

Tracking two different user types with Google Analytics?

We've got a site with two types of users: Guests Registered users What we are looking for is a method to track both types of users within just one Google Analytics profile. We believe a registered user stays more in the site and has a higher page view count that a guest. Could this be possible within just one profile? Could there be...