Initializing
Add the Pixli script to your website. One line in your <head> tag — that's it.
<script defer src="https://pixli.io/js/p.js" data-domain="yoursite.com"></script>After adding the script, open your site in a browser and check the Pixli dashboard. You should see a real-time visitor appear within seconds.
Send a custom event with an optional properties object.
pixli.track("signup")Attach metadata like revenue, plan name, or any custom key-value pairs.
pixli.track("purchase", { revenue: 49.99, plan: "pro" })Passwords, emails, phone numbers, and credit card numbers are automatically masked. To mask additional elements, add the data-pixli-mask attribute.
<div data-pixli-mask>Sensitive content here</div>To exclude specific pages from tracking, add the data-pixli-exclude attribute to the script tag.
<script defer src="https://pixli.io/js/p.js" data-domain="yoursite.com" data-exclude="/admin/*"></script>Full API reference and integration guides coming soon. Questions? Reach out at [email protected].