[Last Call] Learn how to a build a cloud-first strategyRegister Now


php: showing google analytics

Posted on 2011-10-11
Medium Priority
Last Modified: 2012-05-12
Hello Experts,

I am trying to show basic google analytics information from my clients website in their basic CMS admin section...


Visitors today
Referring Sites

I have had a go at all the tutorials i can find but still cant get a php version to work... can someone a) tell me whether this is possible... and b) give me a very basic example of this

Many Many thanks in advance
from a very frustrated maccaj51

p.s. please be kind... i am not an expert myself
Question by:maccaj51
LVL 111

Expert Comment

by:Ray Paseur
ID: 36951783
Why not just go to the Google Analytics pages and see the information right there.  That is how I do it - no need to introduce another level of complexity.

Accepted Solution

speak2ab earned 2000 total points
ID: 36952166
If your question is about how to include the google analytics into a PHP based CMS like wordpress, you can use this simple tips from this post:

Summarily all you need to do is to copy the google analytics to the pages where you want the analytics. You may need to use a file that is common to all your site. E.g the footer.php.  That way any page called from your website (assuming all pages have the footer) will be included in the analytics. Otherwise you might want to copy the analytics into every page.

This should further give you more insight about it :

Author Closing Comment

ID: 37093454
Thanks for your help!

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

826 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question