Website installation
Get AuraScope running on your site.
Set up your measurement address, add the line for your framework, then run a quick installation check.
1Set up your measurement address
Add the CNAME record from onboarding to the domain that serves your site.
- Type
- CNAME
- Name or host
- px
- Target or value
- managed.a-analytics.xyz
2Add the line for your framework
Choose the framework your website uses. The instructions below update for that choice.
Framework
Next.js
In app/layout.tsx, place this inside <body>.
<script defer src="https://px.your-domain.tld/px/t.js"
data-site="pk_your_site_key"></script>SvelteKit
In src/app.html, place this inside <head>.
<script defer src="https://px.your-domain.tld/px/t.js"
data-site="pk_your_site_key"></script>3Check your installation
Deploy as usual, then open your live site and check these three things.
- Script loaded
t.jsreturns status 200- Pageview sent
/px/ereturns status 204- Navigation measured
- One new
/px/erequest after changing page