Does 4SEO need to be connected to Google Analytics?
The reason I asked is it is slowing down the website with according to the google pageside insights.
I do have it in my template BUT I use lazy loading code.
Helpdesk is open from Monday through Friday CET
Does 4SEO need to be connected to Google Analytics?
The reason I asked is it is slowing down the website with according to the google pageside insights.
I do have it in my template BUT I use lazy loading code.
Hi
Does 4SEO need to be connected to Google Analytics?
4SEO is not connected to Google Analytics.
Best regards
Yannick Gaultier
weeblr.com / @weeblr
4SEO > Configuration > Analytics > Screenshot
Hi
4SEO > Configuration > Analytics > Screenshot
Well you added the Google analytics snippet using 4SEO.
4SEO itself is not connected to Analytics, nor does it do anything with or in connection to analytics.
What this rule does is inject in your page the standard Google analytics code snippet, that you get from Google. You could inject that as well in your template for instance.
I do have it in my template BUT I use lazy loading code.
Yes, of course, 4SEO injects the standard, lazy loaded code.
Can I ask why you are using both?
Best regards
Yannick Gaultier
weeblr.com / @weeblr
Hi Yannick,
Okay so I'll turn off Google analytics in 4SEO.
RE: Can I ask why you are using both? I setup 4SEO last year this year I changed and optimized new templates for better Google PageSpeed Insight scores. It was recommend to lazy load Google Analytics for faster load times which worked.
Thanks, Best Regads
Bill
Hi
It was recommend to lazy load Google Analytics for faster load times which worked.
There's only one recommended way to load the Analytics V4 snippet. It's using an async attribute and therefore does not slow down the page. In other words, nothing is being slowed down by this and there's nothing more to do:
<head> <script class="4SEO_analytics_rule_1574" async src="https://www.googletagmanager.com/gtag/js?id=G-[redacted][redacted]"></script> <script class="4SEO_analytics_rule_1574"> window.dataLayer = window.dataLayer || [];function gtag() {dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-[redacted][redacted]');</script>
I'm not sure exactly what you mean by lazy loading here but using the proper v4 snippet does not trigger Page Speed at all.
Also, and in case you're doing for better actual performance, google pageside insights is not what Google uses for measuring speed.
Best regards
Yannick Gaultier
weeblr.com / @weeblr
Hi Yannick,
So, what does Google use to measure speed?
Thanks, Best Regards
Bill,
Hi
So, what does Google use to measure speed?
Your visitors Chrome browser: https://developer.chrome.com/docs/crux
If I use chrome on my phone, and I am in a tunnel with a slow phone from 2012, and I visit your site, you will get a low score, because the page took 10 seconds to load.
Page Speed Insights or the tools in your browser developer tools page are only here to help you identify what's slow and what's fast.
GoogleBot, their crawler, does not measure speed.
And again, back to the topic at hand, I don't know what code you are using and call "lazy" but using the async attribute will not block the page rendering while the script is being downloaded nor its rendering, so there's really not much you can do to avoid any impact on the page than using the async attribute. Which is why this is the recommended way to load that script (or any other that's not used for rendering the page)
Best regards
Yannick Gaultier
weeblr.com / @weeblr