improved script
This commit is contained in:
@@ -120,12 +120,17 @@ function tE(eventName, additionalParams = {}) {
|
||||
|
||||
return sendInfo();
|
||||
}
|
||||
|
||||
function pL() {
|
||||
tE("pageLoad_" + window.location.pathname);
|
||||
}
|
||||
|
||||
</script>
|
||||
<!-- Set up page load tracking -->
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
try {
|
||||
tE("pageload");
|
||||
pL();
|
||||
} catch (error) {
|
||||
console.error("Error in page load tracking:", error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user