Skip to content

Commit

Permalink
Revert hardcoding RUM- in tracking phtml
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjitse-E committed Jan 31, 2025
1 parent b6c0de5 commit 8d7f41c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/frontend/templates/script/rumvision.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ if (! $viewModel->shouldIncludeScript()) {
if ( s.urls && s.regex && ( s.page = eval('('+s.regex+')')( s.urls, vi.location.pathname ) ) && !s.page.type ) {
return sessionStorage.setItem('rumv', JSON.stringify( s ) );
}

vi.rumv.storage = s;
var head = si.querySelector('head'), js = si.createElement('script');
js.src = 'https://d5yoctgpv4cpx.cloudfront.net/'+rum+'/v4-'+vi.location.hostname+'.js';
head.appendChild(js);
})( 'RUM-<?= $escaper->escapeJs($viewModel->getTrackingId()) ?>', window, document, '<?= $escaper->escapeJs($viewModel->getHostName()) ?>' );
})( '<?= $escaper->escapeJs($viewModel->getTrackingId()) ?>', window, document, '<?= $escaper->escapeJs($viewModel->getHostName()) ?>' );
</script>

0 comments on commit 8d7f41c

Please sign in to comment.