web-analytics demo
This page loads the tracker with data-allow-localhost="true".
Goals
JS API
Open the console and try:
trace("newsletter_signup", { source: "footer" })
trace("identify", { user_id: "a@b.com", name: "Kim" })SPA navigation
These push history state (each should emit a pageview):
Scroll goal
Scroll down — the box below fires a goal when 50% visible for 300ms.
Scroll target (goal: scrolled_to_footer, section=footer)