Display number of visitors of google analytics on website

37,165

Solution 1

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

Solution 2

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

Solution 3

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

Share:
37,165
Daniel Ramirez-Escudero
Author by

Daniel Ramirez-Escudero

I’m a web designer and developer based in Amsterdam, but I also work for international projects. My objective is to create a connection between your idea and your people. I will listen and customize your concept to successfully communicate your message. For more information please visit my portfolio: http://www.escuderodesign.com/

Updated on October 25, 2020

Comments

  • Daniel Ramirez-Escudero
    Daniel Ramirez-Escudero over 3 years

    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?