Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display number of visitors of google analytics on website

A client asked me to display the number of hits/visitors in their website. I would like to know how can you do display this.

I would insert it in my footer as displayed:

enter image description here

If not possible with google analytics, do you know of a snippet which will work? I've checked websites which offer their services but they recollect information and I would like to learn to do it myself or with google analytics. My files are PHP so maybe there is something I can do with that?

like image 969
Daniel Ramirez-Escudero Avatar asked Sep 30 '13 10:09

Daniel Ramirez-Escudero


People also ask

How can I see how many visits my website has in Google Analytics?

To start, go to Insights » Reports » Overview. Here you can see a traffic overview report and the overall performance of your website. If you scroll down, you can see the Device Breakdown report that shows which device your visitors use to view your website.

Can you see how many people visit a Google site?

Can Google Analytics tell you who is visiting your site? Google Analytics can provide some information on who is visiting your website via the Network Report. The Google Analytics Network Report stores Service Provider data to show which service provider visitors are using to access your site.

How do I see how many visitors a website gets?

Google Analytics (GA) is the standard for measuring website traffic. GA provides an amazing amount of data and is the best way to count website visits for curiosity and to measure results of marketing efforts.


3 Answers

You can use google anlaytics api , which can be enabled in your google api console. For knowing the number of visitors in given time period, you can utilize Core Reporting API and for knowing the current number of visitors in real time , you can use Realtime Reporting API

like image 74
tony m Avatar answered Sep 20 '22 23:09

tony m


You can do graphical representation by using http://www.seethestats.com/ also. Different type of counts you can get like Visits, Unique Visitors, Visits by Page title, etc

  1. Create account on http://www.seethestats.com/.
  2. Select GA stats you want to publish.
  3. Insert stats widget on your website.

ex. http://www.seethestats.com/site/monvidedressing.ch

like image 43
Somnath Muluk Avatar answered Sep 20 '22 23:09

Somnath Muluk


This APIs (Management API Client Libraries & Sample Code) help you easily and quickly.

like image 33
MReza Avatar answered Sep 19 '22 23:09

MReza