Copy your site code
In Hitsteps, open Settings > Tracking Code. Copy the value after code= in the tracking code URL. That value is your site code, and it is the only part you need for this setup.
Docs platform
Add one line to your Docusaurus config and every docs page a reader opens shows up in Hitsteps as its own page, in the order they read them, including when they go Back.
One line in docusaurus.config.js Install guide
In Hitsteps, open Settings > Tracking Code. Copy the value after code= in the tracking code URL. That value is your site code, and it is the only part you need for this setup.
In your Docusaurus project, open docusaurus.config.js and add your site code to the scripts array as shown below. Every page on your site then loads the Hitsteps tracker with route tracking turned on.
Deploy the site, open two documentation pages, then press Back. Each page appears in Hitsteps as its own page, and the page you return to is counted again.
What you get
Docusaurus changes pages without a reload, so a load-only snippet sees one page. With route tracking on, you see the whole reading journey.
Every documentation page a reader opens shows up in Hitsteps as its own page, in the order they read them.
When a reader presses Back, the earlier page is counted again, so you still see that page revisited.
You see which page a reader reads next and where they leave.
After install