What you need
How does it work?
Paste a single prompt into your AI coding assistant. The AI finds the right central layout file, adds one script tag with source="marketing", and your site immediately starts tracking all visitors, page views, and UTM campaigns — automatically, with no further instrumentation needed.
Step 0: Concepts
- Environments and API Keys. Ensure product and marketing streams use the same environment key so data lands in the same workspace and correlation is possible. Read Environments and API Keys.
- Why Correlation Matters. Understand how shared
group_idjoins product usage with billing outcomes to unlock churn and expansion signals. Read Why Correlation Matters.
Step 1: Get your API key
Step 2: Copy the Prompt
Loading...
Step 3: Run it — what to expect
Open your marketing site repo in your AI coding assistant, paste the prompt, and run it. The AI follows a short 3-phase process — no questions, no event classification, just the script tag:
The AI identifies your framework (Next.js, React, Vue, Nuxt, Astro, SvelteKit, plain HTML, WordPress, etc.) and locates the single central file that injects into the <head> of all public pages.
Adds the ThriveStack SDK once to that central file with source="marketing" and your API key in the appropriate .env file. Never added per individual page.
The AI verifies the script URL is exactly correct and the tag is present on all public pages via the central file — then outputs a summary in the chat.
The output you'll receive
| # | Check | Status | Notes |
|---|---|---|---|
| 0 | script tag URL | ✅/⚠️/❌ | Exact src used |
| 1 | script tag in <head> via central file | ✅/⚠️/❌ | File used |
Step 4: Confirm the script is loading
This confirms the script tag is actually served by your site and page view tracking is firing. At the end of Phase 3, the AI will ask which option you prefer:
- Open your site in a browser
- Open DevTools → Network tab → filter by
thrivestack - Confirm the script loads from
cdn.app.thrivestack.ai - Navigate to a second page — confirm a new page view request appears
Tell the AI your site URL. It will open it, confirm window.thriveStack is defined, navigate to a second page, and verify continued page view tracking — fixing any issues automatically.
Only available in AI coding assistants with browser capability (e.g. Cursor, Windsurf, Claude).
Step 5: Verify your setup in ThriveStack
Once the script is confirmed loading, check that visitors are arriving in ThriveStack.
See whether ThriveStack is receiving visitors and page views from your marketing site. This is your ground truth — not just whether the tag was added, but whether data is actually arriving.
Real-time stream of page view and visitor events arriving in ThriveStack. Useful during local development and after deployment to confirm the tag is working across all pages.
What did you just achieve? 🎆
Traditional Marketing Analytics tools typically just show you vanity metrics like Traffic, Page Visits, and Visitor Trends — and most of that is free with tools like Google Analytics. ThriveStack goes far beyond that. It gives you full‑journey correlation by stitching together Marketing touchpoints, Product usage, Account behavior, and Billing events.
| Feature | Traditional Marketing Analytics | ThriveStack Marketing Intelligence |
|---|---|---|
| Track pages | ||
| Track New Visitors | ||
| Traffic by UTM | ||
| Content Performance | ||
| Track Returning Visitors | ||
| Goal Conversions | ||
| Lead Quality | ||
| Multi-Touch Attribution | [P] [R] | |
| Channel Performance (correlated with Product and Revenue) | [P] [R] | |
| Time to Acquisition | [P] | |
| Touchpoints to Acquisition | [P] | |
| New Signups (correlation with Product) | [P] |
* [P] and [R] mean Product and Revenue co-relation.
- Various Marketing Intelligence reports are now available.
- Out of box reports are setup. Share it with your Marketing, Product, and Sales teams.
- Account level Analytics, including 40+ metrics across Activation, Feature Usage, API Usage, are available in the in-built Full Journey CRM
What's next?
Marketing Intelligence is one half of the picture. Set up Product Intelligence to start correlating marketing touchpoints with product usage, account behaviour, and revenue.
Set up Product Intelligence