Track the #hash portion of the URL fragment

From Genesys Documentation
Jump to: navigation, search
This topic is part of the manual Journey JavaScript SDK for version Current of Altocloud.

Track the #hash portion of URL fragments to include relevant information in analytics.

Track the #hash portion of the URL fragment

By default, Altocloud removes the fragment #hash part of the URL. However, you may want to track the URL fragment to analyze relevant information that it contains.

To include the URL fragments in the URLs tracked, login as an administrator, go to Settings > Tracking Settings and enable/disable the Keep Page URL fragments setting.

Before you enable this setting, beware that - by default - pageviews are recorded on page load. If your website renders different content based on the URL fragment (without issuing a page reload) and you want to track these interactions as individual pageviews, you must call the ac('pageview') method each time the URL fragment changes, passing in the desired page location.