Connect your styleguide to Contentsquare to see how viewers use your documentation. Once it's set up, Contentsquare tracks visits from your styleguide's viewers.
Connect Contentsquare
- In zeroheight, open the styleguide you want to track and click Share. On the Website tab, click Copy link.
- In Contentsquare, open the project you want to use for the styleguide, or create a new one. Add the styleguide's domain from step 1 to the project.
- In the project's left-hand menu, choose Tracking. Copy the tag ID with the copy button in the Tag box.
- In zeroheight, open the styleguide settings and choose the Analytics tab.
- Paste the tag ID into the Contentsquare tag ID field. It saves when you click out of the field.
- In Contentsquare, click Verify installation.
👉 Note: Contentsquare can't verify the installation yet, and the tag still shows Not capturing data. This is expected. The integration only tracks viewers of the styleguide, and you're an editor.
Verify the installation
To verify the installation, someone needs to visit the styleguide as a viewer. Copy the styleguide share link again (see step 1), then follow the steps for your styleguide's access type.
Public or password-protected styleguides
- Open the link in a different browser where you're not signed in to zeroheight. For example, if you use Chrome, open it in Safari.
- Accept analytics cookies if a cookie banner appears.
- Interact with the styleguide for around 30–60 seconds.
SSO-protected styleguides
- Send the link to a viewer of the styleguide. This should be someone who has SSO access to the styleguide but isn't an editor.
- Ask them to accept analytics cookies if a cookie banner appears, then interact with the styleguide for around 30–60 seconds.
Then, in Contentsquare, click Verify installation again. The tag should now show that it's capturing data, and you can start using Contentsquare's analytics for your styleguide.
FAQs
Why isn't Contentsquare tracking my visits?
Contentsquare only tracks viewers of your styleguide. Visits from people who are signed in to your zeroheight workspace aren't tracked.
Why can't Contentsquare see some of my viewers?
Contentsquare only loads for viewers who accept analytics cookies.
What do I paste into the Contentsquare tag ID field?
Only the tag ID shown in the Tag box on Contentsquare's Tracking page, for example 1a2b3c4d5e6f7. Don't paste the whole tracking script. The field only accepts letters and numbers.
How do I stop tracking?
Clear the Contentsquare tag ID field in your styleguide's Analytics settings.