谷歌分析跟踪代码与慢加载速度(google analytics tracking code vs slow loading speed)

编程入门 行业动态 更新时间:2024-10-28 03:24:10
谷歌分析跟踪代码与慢加载速度(google analytics tracking code vs slow loading speed)

什么时候GA跟踪开始? 在页面加载(100%)或从部分加载.js时?

我有一个网站,加载时间可怕,并且GA追踪延迟10秒。 这个加起来还是我应该添加10个“加载第一个字节”或加载GA .js(使用网页测试)?

我正在经历主要的低跳出率,这实在太好了。

when exactly does the GA tracking start? At page load (100%) or when the .js is loaded from section?

I have a website that has horrific loading time and additionally has 10s delay on GA tracking. Does this add-up or should I rather add the 10s with "First byte loaded" or the GA .js loaded (using webpagetest)?

I am experiencing major low bounce rate that is just way too good to be true.

最满意答案

你正在发送'10秒'的事件,这正在摧毁你的跳出率。 加载Analytics脚本后,时钟将立即启动,这可能在您的页面准备就绪之前。 由于页面尚未加载,人们会留下来并触发事件 - 而不是反弹。

要解决此问题,您可以根据页面加载事件开始倒计时(使用Google跟踪代码管理器很容易)。

但是,我建议你重新考虑你的策略。 添加此类事件对“真实”跳出率非常具有破坏性,即使在页面加载后30或60秒,Google Analytics的仔细计算指标在您破解之前对您更有用。 如果您没有其他方法来衡量这些人与页面的交互(例如点击事件,或者可能是滚动),那么他们实际上是否与页面进行了交互呢? 他们可能已经离开了,或者起身喝了一杯茶。

如果您打算这样做,我建议您至少使该事件成为非互动点击,这样您仍然可以从计算指标获得所需的百分比,但不会破坏跳出率。

You're sending an event '10 seconds in', which is what's destroying your Bounce Rate. The clock will start as soon as the Analytics script is loaded, which may be well before your page is ready. Since the page hasn't loaded yet, people stick around and the event triggers - not a bounce.

To fix this, you could instead start the countdown based on the Page Load event (which is easy with Google Tag Manager).

However, I recommend you rethink your strategy. Adding an event of this nature is very damaging to the 'true' Bounce Rate, even if it's 30 or 60 seconds after the page load, and Google Analytics' careful calculated metric will be more useful to you before you break it. If you don't have another way of measuring these people's interaction with the page (such as a click event, or perhaps a scroll), then what's to say that they actually did interact with the page? They could have tabbed away, or got up to make a cup of tea.

If you are going to do this, I recommend you at least make the event a non-interaction hit, so you can still get the percentage that you want from Calculated metrics, but you won't ruin the Bounce Rate.

更多推荐

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

发布评论

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

>www.elefans.com

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