Getting Started

Install Tracker

Add the hosted script to every page you want to measure.

Overview

html
<script  defer  src="https://app.revlly.com/script/YOUR_SCRIPT_ID.js"  data-website-id="YOUR_WEBSITE_ID"  data-domain="example.com"></script>

Options

  • data-allow-localhost="true" enables local development tracking.
  • data-cookieless="true" stores visitor IDs without cookies and rotates them after about 24 hours.
  • data-disable-auto-pageviews="true" disables automatic pageviews.
  • data-track-hash="true" includes hash routes in tracked paths.
  • window.revlly.track("signup") records a browser goal.
  • data-revlly-scroll="viewed_pricing" records a goal when an element becomes visible.
  • window.revlly.trackPayment(...) records hosted checkout fallbacks.
  • window.revlly.identify(...) links anonymous visits to a known app user.
  • window.revlly.getContext() returns visitor and session IDs for backend attribution.