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
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.
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);