Red
Red

Reputation: 6378

google analatycs track dynamic pages

I decided to choose Google Analatycs to track the pages.

I have custom/dynamic pages in php and i want to track all the pages.

on my project every users can create a page and the URL looks like

www.mysite.com/user_page_name

so i want to track all the details of the page user_page_name

how can i retrieve the details of this page in php ?

currently i just created a profile in google analatycs center with my domain.

I am using PHP-CODEIGNITER.

Thank you.

UPDATE : YES,IT IS POSIBLE ,BUT NOW I NEED TO GET THE DETAILS OF A GROUP OF PAGES. ASSUME THAT A USER ON MY SITE CREATED 5 PAGES ,SO I NEED THE DATA OF EACH PAGES.

Upvotes: 1

Views: 348

Answers (1)

Shivan Dragon
Shivan Dragon

Reputation: 15219

Well, if you're wondering how to retrieve analytics data using php and display it on you website (such as how many unique visits the page X had between the dates of d1 and d2), Google offers an analytics API for PHP:

http://code.google.com/p/gapi-google-analytics-php-interface/

I've actually used the Java version, it works quite well (at least for basic data retrieval, I haven't tried anything too complicated)

Upvotes: 1

Related Questions