We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12852b commit f53ac86Copy full SHA for f53ac86
1 file changed
app.js
@@ -121,12 +121,12 @@ function thumbUrl(video) {
121
}
122
123
function render(forceAutoplay) {
124
- if (typeof gtag === 'function') {
+ const hash = location.hash.slice(1); // e.g. /product/crm/video/crm-1
125
+ if (typeof gtag === 'function') {
126
gtag('config', 'G-CZKRW5KJRS', {
127
page_path: location.pathname + location.search + location.hash
128
});
129
- const hash = location.hash.slice(1); // e.g. /product/crm/video/crm-1
130
const parts = hash.split("/").filter(Boolean);
131
const isHome = parts.length === 0 || parts[0] !== "product";
132
document.querySelector(".navbar").classList.toggle("is-home", isHome);
0 commit comments