如何使用Google Analytics(分析)跟踪文件服务器上静态HTML页面的视图? [英] How to use Google Analytics to track views of static HTML pages on file server?

查看:114
本文介绍了如何使用Google Analytics(分析)跟踪文件服务器上静态HTML页面的视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在file:///c:/Path/Index.html上建立了一个简单的Intranet,我想跟踪它在Google Analytics(分析)中的使用情况.

I have set up a simple intranet at file:///c:/Path/Index.html and I'd like to track its use with Google Analytics.

因为它的协议是'file:'而不是'http:',所以它没有域名.反正有一种使用Google Analytics(分析)的方法吗?

Because its protocol is 'file:', not 'http:', it does not have a domain name. Is there a way to use Google Analytics anyway ?

推荐答案

我一直在寻找有关在静态HTML上实现Google Analytics(分析)的信息,但遇到了此正式的Google信息- https://support.google.com/analytics/answer/1008080?hl=zh_

I was looking for information on implementing google analytics on static HTML, came across this official google info - https://support.google.com/analytics/answer/1008080?hl=en

静态网站静态网站是指不会使用编程语言或接口(例如Python,Ruby,PHP等)生成HTML页面的静态网站.要收集数据,您必须将Google Analytics(分析)跟踪代码复制并粘贴到每个网页上的源代码中希望跟踪.获得属性的Javascript跟踪代码段后,无需复制即可完全复制该代码段.在要跟踪的网站的每个网页上,在结束标记之前粘贴您的跟踪代码段(完整不变).如果您希望一次从网页上收集数据到多个属性,请学习如何使用多个帐户或属性来跟踪页面."

这篇关于如何使用Google Analytics(分析)跟踪文件服务器上静态HTML页面的视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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