Quick Start
Get Produl running on your site in under 5 minutes.
Install the tracker
- 1
Create a site in the dashboard
Go to your dashboard and click New Site. You'll get a public
site API key— copy it for the next step. - 2
Add the tracker to your site
Paste this before
</body>on every page, replacingYOUR_SITE_API_KEY:html<script defer data-site="YOUR_SITE_API_KEY" src="https://app.produl.tech/tracker.min.js"></script> - 3
Deploy and open the page
Deploy the change, then visit any page on your site. The pageview should appear in your dashboard within seconds.
This script tag is the recommended install for most frameworks, static sites, and CMSs. The optional NPM package is available for teams that want typed helpers or a framework component.
Verify it works
Open your site with browser devtools on the network tab. You should see a POST to /r on page load. In your dashboard, the Live visitors counter should tick up.
For custom events, call window.ma.track() after the script has loaded:
window.ma.track('signup', { plan: 'pro' })What's next?
Now that tracking works, the most common next steps are:
- Wire up custom events for signups, purchases, or anything else you care about
- Open the dashboard to compare all sites or drill into one property
- Set up alerts so you know when something breaks