问题描述
一位客户让我在他们的网站上显示点击次数/访问者数量.我想知道你怎么才能显示这个.
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:
如果谷歌分析无法实现,您是否知道一个可以工作的片段?我检查过提供服务的网站,但他们会收集信息,我想学习自己或使用谷歌分析来做这件事.我的文件是 PHP,所以也许我可以用它做些什么?
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?
推荐答案
您可以使用 google anlaytics api ,它可以在您的 google api 控制台中启用.要了解给定时间段内的访问者数量,您可以使用 Core Reporting API 要实时了解当前访问者的数量,您可以使用 实时报告 API
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
这篇关于在网站上显示谷歌分析的访问者数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!