Skip to content

Commit 4845495

Browse files
Added script (#6124)
1 parent dcb3587 commit 4845495

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

web/js/components/util/google-tag-manager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
/* eslint-disable */
22

3+
window.dataLayer = window.dataLayer || [];
4+
window.dataLayer.push({
5+
event: "virtualPageView",
6+
page_location: location.href,
7+
page_title: document.title,
8+
page_referrer: document.referrer,
9+
});
10+
311
export default {
412
/*
513
* @func dataLayerPush object to GoogleTagManager

0 commit comments

Comments
 (0)