Documentation is often where developers decide whether to buy. Reveata on your Docusaurus site shows which pages they read, where they came from, including AI assistants and search engines, and, when your docs and product share a visitor, which docs pages lead to paying customers.
What you get
- Every docs page counted, including in-site navigation.
- Sources of readers: search engines, AI assistants, GitHub, forums and tagged links.
- Scroll depth and outbound clicks by default, so you can see whether readers reach the end of a guide and which links they follow out.
- One visitor across docs and product when they share a root domain, or across domains with
data-domains.
How to install it
Add the script to docusaurus.config.js:
// docusaurus.config.js
export default {
scripts: [
{
src: 'https://reveata.com/js/script.js',
defer: true,
'data-website-id': 'ws_your_tracking_id',
},
],
};Or build the same entry with docusaurusScript({ websiteId, host }) from @reveata/next/snippet (npm install @reveata/next). The scripts option is described in the Docusaurus config reference (opens in a new tab). Build and deploy.
Connecting docs reading to revenue
A docs site rarely takes payments itself. To see which pages lead to customers, track the docs and your product in one Reveata website:
| Setup | What to do |
|---|---|
docs.example.com and app.example.com |
Same root domain: one website covers both (subdomains) |
example.dev docs and example.com app |
List both in data-domains so links carry the visitor (cross-domain tracking) |
Then connect your payment provider in the product, and a buyer's earlier docs visits become part of their journey. Under first-touch attribution, a docs page that first brought a buyer gets the credit (revenue attribution).
Goals for docs
Count a click on "Get started" or "Sign up" with data-reveata-goal="signup" on the link in an MDX page, or call window.reveata?.('goal', 'copy_install') from a component (custom goals).