Record Google Analytics with PHP? Possible? - php

I use Google Analytics and love it, I have all the goals and conversions setup etc. It works great.
My current task is recording mobile apps. I do not want to hard code it into the App due to ease of changing methods, so I plan on planting the analytics in the mobile API (which is in PHP). I would like to record google analytics events using PHP instead of Javascript.
I know there is a PHP API for Google analytics, but I think this is for reporting only. What would you suggest doing? Maybe a CURL or something? Im lost!
Thanks for your help!

Would this work: http://code.google.com/mobile/analytics/docs/

Try this:
http://code.google.com/p/php-ga/

Related

How we can show google analytics reports on our website using PHP

I want to display google analytic reports on my website.
Please let me know is there API provided by Google for this.
The simplest way is, you can add an iframe in your site
Please setup tracking code for that.....
Please check below given link it's usefull to you...
https://support.google.com/analytics/answer/1008080?hl=en
GA API allow only access to GA data. You need create manually (with html and javascript) the reports.

Blocking Proxies from Views

I was just wondering...Other than using User Agent OR Google Analytics, is there any good way to detect proxies? IE people using proxy bots to visit your site? Is there a way to do this in JS?
I've already tried pulling data from Google Analytics using gAPI but it isn't useful since i'd have to make more then 50,000 requests a day and is simply not feasible.
Purpose is because i'm running an ad-management website and wish to stop bots...
How does Adsense manage to block all those China bots from Adsense profit generating?
Would appreciate if there's any thoughts regarding this!
Thanks!
You can use a service like Maxmind to do this.
Details : http://www.maxmind.com/en/proxy

What is a good PHP analytics script?

I've created a completely custom website with a custom CMS. I would like to be able to use Google Analytics to get information such as visitor count, popular pages, visitor location(?), etc. I'm not into the analytics part of websites yet, so I've been looking for some easy ways to implement GA into the CMS. I'd love for the analytics dashboar to look similar to Blogger's analytics dashboard.
Does anyone have experience with a script that will get information from GA, and display it in a nice format?
Thanks!
By the way, I am very new to GA, so sorry if some of this doesn't make sense.
Piwik is a good option. It is open source and exposes a web API, so you can probably customize it to your needs.

Getting Google Analytics campaign data charts with Google API and PHP

Yes. I would like to retrieve GA Campaign Tracking Data but don't know how to do with PHP. Please help me.
I would suggest checking out http://code.google.com/p/gapi-google-analytics-php-interface/ which is a php library for accessing such data. There are a few examples which I think show it quite well.
Hope it's of help.

iGoogle, netvibes etc. alike script or ideas?

I have get an very good idea of making a social dashbord, like iGoogle/netvibes. But I would like to do it my self.
So my question is, are there a script in php, that are build that I can begin with if not is there possible to use Google Gadget API or any other alike API?
Yes, you can use Google's Gadget API.
Also take a look at this SlideShar Presentation, How to Build Your Own Social Media Dashboard On A Shoestring Budget
Here's an article about building with netvibes, Build A Social Media Network With Netvibes
If you get stuck anywhere, please do ask, we'd be happy to help.

Categories