Google Analytics Tracking Code cached by Varnish if Cookie Restriction Settings are active #6441
Labels
bug report
Component: Framework/Cache
Fixed in 2.1.x
The issue has been fixed in 2.1 release line
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Release Line: 2.1
This one is related to #5596. After working around this issue we discovered a problem when using varnish as a full page cache.
Preconditions
Steps to reproduce
Expected result
Actual result
Discussion
We think the block
google_analytics
should be declared as non-cachable. This part should be fetched as an ESI block because it depends on Cookie Restriction Settings and my confirmation to allow cookies. You will not see this behaviour with Magento built-in cache.This is, what should happen. Analytics script should be fetched as ESI block when using Varnish to avoid this problem:
The text was updated successfully, but these errors were encountered: