Skip to content

Commit 24d9042

Browse files
committed
MC-30741: GTM is not trigged without Page Reload
- Create a new event that triggers ga:initd which have been initialized when allowing cookie from browser - Renaming 'ga:init' to 'user:allowed:save:cookie'
1 parent aea9354 commit 24d9042

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/Cookie/view/frontend/web/js

1 file changed

+1
-0
lines changed

app/code/Magento/Cookie/view/frontend/web/js/notices.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ define([
3030

3131
if ($.mage.cookies.get(this.options.cookieName)) {
3232
this.element.hide();
33+
$(document).trigger('user:allowed:save:cookie');
3334
} else {
3435
window.location.href = this.options.noCookiesUrl;
3536
}

0 commit comments

Comments
 (0)