谷歌分析

编程入门 行业动态 更新时间:2024-10-27 12:33:28
谷歌分析 - ga.js和analytics.js之间的区别(Google analytics - difference between ga.js and analytics.js)

使用“Google Analytics”,使用ga.js和analytics.js跟踪我们的网站,但我不知道它们之间的区别。 除了语法之外,它们有什么区别! :d

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

当我创建一个帐户(Google Analytics)时,它只是通过analytics.js向我提供了跟踪代码,为什么不是ga.js. analytics.js是他们推荐的还是什么!

Working on "Google Analytics", Track our website using ga.js and also analytics.js but I don't know the difference between them. Is there any difference in them except the syntax! :D

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

And when I created an account(Google Analytics) it just gave me the tracking code by analytics.js why not ga.js. Is analytics.js is the one recommended by them or what!

最满意答案

Analytics.js是新的通用分析配置文件。 您在创建配置文件时设置经典或通用。 您无法在经典和通用之间切换配置文件,而是需要创建新配置文件以在配置文件类型之间切换。

Analytics.js is the new universal analytics profile. You set classic or universal when you create the profile. You are not able to switch a profile between classic and universal, instead you need to create a new profile to switch between profile types.

更多推荐

本文发布于:2023-08-06 20:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1455439.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!