Track page views
Apply the following procedure if you want to log all visits to pages residing in your web site in the contact journey
To be identified, visitors should have already clicked on a link hook before visiting your web page.
Add the following code to your site's templates.
The code should be added near the top of the tag, before any other script or CSS tags.
Page view hits can be sent using the
trackcommand and specifying a
The track command has the following signature:
stnt.track('trackingId', 'hitType', 'pageUrl');
The following table summarizes the primary fields relevant to tracking page views.
Your tracking ID. Should look like
The type of hit. Page view hit should be
URL of the page being tracked. Can be absolute or relative.
The following command sends a
page-viewhit and includes the path of the current page:
stnt.track('STNT-XXXXXXXXXX-Y', 'page-view', document.location.href);