Skip to content

Add wordpress platform marker to script tag#30

Merged
adriaandotcom merged 2 commits into
simpleanalytics:mainfrom
paulber33:fix-issue-20-add-data-platform-wordpress
Jun 18, 2026
Merged

Add wordpress platform marker to script tag#30
adriaandotcom merged 2 commits into
simpleanalytics:mainfrom
paulber33:fix-issue-20-add-data-platform-wordpress

Conversation

@paulber33

@paulber33 paulber33 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #20

Adds data-platform="wordpress" to the Simple Analytics script tag so WordPress plugin traffic can be identified by platform. Also adds a browser test assertion to prevent regressions.

Security implications

  • No security impact
  • Has security impact - described as:

Testing

  • Ran Local tests & verified the rendered page includes data-platform="wordpress" on the analytics script tag
  • Ran pnpm playwright test tests/Browser/pluginSettings.spec.ts --grep "adds a script by default"

Checklist

  • Linked to an issue
  • Tested
  • Asked for a review

@adriaandotcom adriaandotcom self-requested a review June 18, 2026 12:06
@adriaandotcom adriaandotcom merged commit 02abd8f into simpleanalytics:main Jun 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add data-platform="wordpress" to script tag

2 participants