Skip to content

Commit 111b87e

Browse files
Add intro
1 parent 38164f1 commit 111b87e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

_docs/33_explained/20_platform-integration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ permalink: /explained/platform-integration
55
last_modified_at: 2025-07-04
66
---
77

8+
This short guide is for product and engineering teams that run a multi-tenant SaaS or website builder and want to offer privacy-first analytics without extra setup screens. Your users will see a single Enable Simple Analytics checkbox in their account settings, and once they tick it the platform does the heavy lifting.
9+
10+
Under the hood you inject one lightweight script into each customer site, using the site’s hostname as the identifier. There is no need for a separate Simple Analytics account or manual site ID, which keeps onboarding fast. If a user later unticks the box, you simply stop embedding the script so tracking halts immediately.
11+
12+
Optionally you can include a small helper that buffers event calls. It sits harmlessly in every page, and when the main script is active it ships events like click_signup to Simple Analytics for richer insights and affiliate credit.
13+
14+
## UI integration
15+
816
Add an **Enable Simple Analytics** checkbox in your settings page.
917

1018
- When the user checks the box, inject the embed script below into their pages.

0 commit comments

Comments
 (0)