Backport PR-9713 & PR-9711 for Magento 2.1 - Google Analytics fixes when Cookie Restrictions is enabled #10749
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cherry picked from commits:
Description
I also took over the reformatting of that line introduced in 391bf42
Fixed Issues (if relevant)
@bka: do you recommend to also include #9711 in Magento 2.1, it seems like these two PR's are related?
I only backported #9713 for now, because it fixed a specific issue in our case, we didn't need #9711 to fix our issue (we aren't using Varnish, that might explain it), but it might make sense to include both of these in Magento 2.1?
Update: added backport for PR #9711 and updated the issues list above with more issues involved with these fixes