Skip to content

Commit f12852b

Browse files
committed
added tag across sub domains
1 parent f27c40c commit f12852b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ function thumbUrl(video) {
121121
}
122122

123123
function render(forceAutoplay) {
124+
if (typeof gtag === 'function') {
125+
gtag('config', 'G-CZKRW5KJRS', {
126+
page_path: location.pathname + location.search + location.hash
127+
});
128+
}
124129
const hash = location.hash.slice(1); // e.g. /product/crm/video/crm-1
125130
const parts = hash.split("/").filter(Boolean);
126131
const isHome = parts.length === 0 || parts[0] !== "product";

0 commit comments

Comments
 (0)