Basic installation
Add the<script> tag before </body> on every page:
Calling identify
Because the snippet loads asynchronously, callidentify() with a guard:
window.zenstep.identify() directly — the queue captures it automatically before the snippet has loaded:
jQuery example
If you’re using jQuery and identifying the user on document ready:Multi-page applications
For traditional server-rendered apps (PHP, Rails, Django, etc.), add the snippet in your base layout template and callidentify() on every page after the authenticated user is available.
base_layout.html (example)