A single-page application (SPA), is a web application or web site that fits on a single web page with the goal of providing a more fluid user experience akin to a desktop application.
In order to track events for single-page websites, your webpage must use URLs that use the # hash appended to the URL. When the hash is changed you can then resubmit the tracked event to SharpSpring, by calling _ss.push(['_trackPageView']).
Step One: Add tracking code to your website.
For more information, check out our help article on Adding a Site and Inserting Tracking Code. In order to track events on a single page, your website must use anchor tags (i.e. http://example.com/#products). To learn more about anchor tags, click here.
Step Two: Paste the following code snippet below your tracking code.
Step Three: You can resubmit the tracked event to SharpSpring by calling
The code in the image below is an example of where the code appears in the SharpSpring application. The code is located under Settings > Single Page Apps.