From cf5985aefc4fadae6d63c77e22a4337720d72f2c Mon Sep 17 00:00:00 2001 From: Simple Analytics Agent <343555763+simpleanalytics-agent@users.noreply.github.com> Date: Mon, 16 Nov 2026 14:48:06 +0100 Subject: [PATCH] Send the data-platform attribute with pageviews Integrations such as the WordPress plugin set data-platform on the script tag. Send it as `platform` with each pageview, next to the script URL, so the queue can store which platform embedded a site. Part of #156 Co-Authored-By: Claude Opus 5.5 --- src/default.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/default.js b/src/default.js index afccb81..5c74d30 100644 --- a/src/default.js +++ b/src/default.js @@ -854,6 +854,8 @@ scriptElement && scriptElement.src && scriptElement.src.split("?")[0], + // Integration that embeds the script, e.g. data-platform="wordpress" + platform: attr(scriptElement, platformText), /** if ignoremetrics **/ k: k, /** endif **/