From 1c337a34c9f838cb3d5887dda421360b20756a0c Mon Sep 17 00:00:00 2001 From: Karl Breuer Date: Sun, 13 Apr 2025 17:47:05 +0200 Subject: [PATCH] improved script --- script/trackscript.html | 80 +++++++++++++++++++++++++++++++++++ wordpress/simple-tracking.php | 7 ++- 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 script/trackscript.html diff --git a/script/trackscript.html b/script/trackscript.html new file mode 100644 index 0000000..8c334f8 --- /dev/null +++ b/script/trackscript.html @@ -0,0 +1,80 @@ + + + + + + + + + diff --git a/wordpress/simple-tracking.php b/wordpress/simple-tracking.php index 5ad9aeb..f269f87 100644 --- a/wordpress/simple-tracking.php +++ b/wordpress/simple-tracking.php @@ -120,12 +120,17 @@ function tE(eventName, additionalParams = {}) { return sendInfo(); } + +function pL() { + tE("pageLoad_" + window.location.pathname); + } +