Install the tracker

Create a project in the dashboard, then paste the snippet before the closing </head> or </body> tag on your site.

The snippet

<script src="https://your-replayly-host/t.js?pid=PROJECT_PUBLIC_KEY" async></script>

The project id is read from the script URL. Events are posted to the same origin at /api/ingest. Use Verify installation on the project page after you deploy the snippet.

Useful options

  • Append &dnt=0 to the snippet if you need to ignore Do Not Track on a test page. The signed-in dashboard has a project demo you can use after you create a project; that demo is not a public marketing URL.
  • For consent mode, call window.replayly('consent') after the visitor agrees.
  • Add class rr-block to hide a node, or rr-mask to mask text.

Next: read the privacy controls or the self-host guide.