在网站上显示Google Analytics的访问者数量 [英] Display number of visitors of google analytics on website

查看:307
本文介绍了在网站上显示Google Analytics的访问者数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一位客户要求我在他们的网站上显示点击数/访客数。



我会将其插入到我的页脚中,如下所示:





如果不可能的话与谷歌分析,你知道一个片段,将工作?我已经检查了提供他们服务的网站,但他们记得收集信息,我希望自己学习或使用谷歌分析。我的文件是PHP,所以也许我可以用它做些什么?

您可以使用 google anlaytics api ,它可以在你的谷歌API控制台中启用。要了解特定时间段内的访问者人数,您可以使用核心报告API 以及实时了解当前访问者数量,您可以使用实时报告API


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:

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?

解决方案

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

这篇关于在网站上显示Google Analytics的访问者数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆