Skip to content

Commit f2e430e

Browse files
authored
Remove cusotm dataLayer push (#821)
1 parent 3bc4e6e commit f2e430e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Elastic.Markdown/Assets/main.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ import {$, $$} from "select-dom"
1414
import { UAParser } from 'ua-parser-js';
1515
const { getOS } = new UAParser();
1616

17-
document.addEventListener('htmx:pushedIntoHistory', function(event) {
18-
window.dataLayer = window.dataLayer || [];
19-
window.dataLayer.push({
20-
event: "virtualPageview",
21-
page_path: event.detail.path,
22-
});
23-
});
24-
2517
// Don't remove style tags because they are used by the elastic global nav.
2618
document.addEventListener('htmx:removingHeadElement', function(event) {
2719
if (event.detail.headElement.tagName === 'STYLE') {

0 commit comments

Comments
 (0)