Marketing Intelligence

Setup with AI Coding Assistants

Use an AI coding assistant to instrument your marketing site with ThriveStack in minutes — one script tag, and your site auto-tracks all visitors, page views, and UTM campaigns.

Claude Lovable Replit Bolt.new OpenAI Codex Google AI Studio Antigravity Emergent Windsurf and more

What you need

Someone who can deploy to the marketing website Access to the marketing site codebase or CMS

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_id joins product usage with billing outcomes to unlock churn and expansion signals. Read Why Correlation Matters.

Step 1: Get your API key

Create / Reuse 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:

0
Phase 0 — Codebase scan

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.

1
Phase 1 — Script tag

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.

2
Phase 2 — 2-point verification summary

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
0script tag URL✅/⚠️/❌Exact src used
1script 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:

A Manual testing — DevTools Network tab
  1. Open your site in a browser
  2. Open DevTools → Network tab → filter by thrivestack
  3. Confirm the script loads from cdn.app.thrivestack.ai
  4. Navigate to a second page — confirm a new page view request appears
B AI-assisted testing — let the AI verify for you

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.


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