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 f53ac86 commit 5d66142Copy full SHA for 5d66142
1 file changed
app.js
@@ -123,6 +123,9 @@ function thumbUrl(video) {
123
function render(forceAutoplay) {
124
const hash = location.hash.slice(1); // e.g. /product/crm/video/crm-1
125
if (typeof gtag === 'function') {
126
+ const basePath = location.pathname.replace(/\/$/, '');
127
+ const cleanHash = location.hash.replace(/^#\/?/, '');
128
+ const customPath = basePath + (cleanHash ? '/' + cleanHash : '/');
129
gtag('config', 'G-CZKRW5KJRS', {
130
page_path: location.pathname + location.search + location.hash
131
});
0 commit comments