mootools
When I launched my new design last week, I used PHP to comment out Google Analytics because I didn't want to skew the stats. Well, I did skew my stats that day because I forgot to uncomment the damn GA code. Rook move, I know. With that in mind, I've created a MooTools script that checks to make sure Google Analytics is loaded. If not, you get a friendly JavaScript alert() reminder.
上周启动新设计时,我使用PHP注释掉Google Analytics(分析),因为我不想歪曲统计数据。 好吧,那天我确实歪曲了我的统计信息,因为我忘记了该死的GA代码的注释。 白嘴鸦动作,我知道。 考虑到这一点,我创建了一个MooTools脚本,该脚本进行检查以确保已加载Google Analytics(分析)。 如果没有,您将获得友好JavaScript alert()提醒。
Not having 10 hours worth of stats is a big deal. This code will (hopefully) prevent this from happening again in the future.
没有10个小时的统计数据很重要。 此代码将(希望)防止将来再次发生这种情况。
翻译自: https://davidwalsh.name/check-for-google-analytics-using-mootools
mootools
相关资源:jdk-8u281-windows-x64.exe