www.rithmschool.com - Delayed load with Basic Tracking Protection enabled
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(firefox87 fixed)
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: sergiu, Unassigned)
References
()
Details
(Whiteboard: [tp-analytics][tp-shim-trivial][tp-site-ephemeral])
User Story
www.google-analytics.com
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Reporter | ||
Updated•7 years ago
|
Assignee | ||
Updated•7 years ago
|
Updated•6 years ago
|
Comment 2•5 years ago
|
||
This is caused by Google Analytics being blocked, as the site is intentionally hiding their content with the AsyncHide Google Optimize snippet until it has loaded, timing out after 4 seconds:
<!-- Fullstory script -->
<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
})(window,document.documentElement,'async-hide','dataLayer',4000,
{'GTM-T8LFJG2':true});</script>
This has of course caused problems for tracking protection solutions.
Basically we just need to shim https://www.google-analytics.com/analytics.js
so that it runs this instead of being loaded:
window['dataLayer'].hide.end()
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 3•5 years ago
•
|
||
The issue seems to be fixed, with ETP - Standard enabled, the page loads fast.
Note: The issue still occurs with ETP - Strict enabled.
Tested with:
Browser / Version: Firefox Nightly 86.0a1 (2021-01-12)
Operating System: Windows 10 Pro
Comment 4•4 years ago
|
||
(In reply to Thomas Wisniewski [:twisniewski] from comment #2)
Basically we just need to shim
https://www.google-analytics.com/analytics.js
so that it runs this instead of being loaded:
Google Analytics shims were added in bug 1637329 and enabled in bug 1693386 for Firefox 87.
Updated•4 years ago
|
Description
•