Astro
npx @plaintrace/cli init --site <site id> --endpoint https://collect.plaintrace.devThe CLI edits the first layout in src/layouts/ that has a </head>, or src/pages/index.astro. By hand, add
to your layout’s <head>:
<script is:inline>if(!window.px){var p=window.px=function(){p.q.push(arguments)};p.q=[];p.s=1}</script><script is:inline async src="https://collect.plaintrace.dev/t.js" data-site="<site id>"></script>is:inline keeps Astro from bundling the script, so the version you choose is the one that runs. View
transitions are recorded as soft page views.