“Yes. Heap's Autocapture works with React single-page applications (SPAs).”
“Yes. Heap's Autocapture works with React single-page applications (SPAs).”
“Once Heap's web snippet is installed, it automatically captures standard DOM interactions, including:”
“Heap supports SPAs and automatically captures browser pushState and hashChange events.”
“Heap also supports custom events through its tracking APIs.”
“Bottom line: You don't need developers to instrument every React button and form. Heap's Autocapture handles most standard interactions automatically.”
“React Router: Make sure route changes update the browser history or URL meaningfully. Otherwise, Heap might not recognize navigation as a new pageview.”
“Dynamic components: Use distinct, stable CSS classes, IDs, or data-* attributes on important elements. This makes event identification more reliable.”
“Custom interactions: If a React component performs an action without triggering a standard DOM click, change, or submit event, you may need custom instrumentation.”
“Event timing: SPA transitions can occasionally cause page properties such as title and previous page to reflect the previous route.”
