Manually track a page view. This is automatically called when the tracking code loads, but can be used for single-page applications.Documentation Index
Fetch the complete documentation index at: https://developers.hubspot.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Basic Page View
For Single-Page Applications
Notes
- Use this method when you need to track page views without reloading the page.
- Commonly used in single-page applications (SPAs).
- Use with
setPathto track the correct page path in SPAs.