discardHashTag

The discardHashTag() method removes anchors (#) from tracked page URLs.

Syntax

discardHashTag(enableFilter)
Not available
Not available
Not available
Not available
Not available
Not available

Parameters

enableFilter (boolean, required)

Whether anchors (#) should be removed from tracked page URLs.

Examples

To remove anchors (#) from tracked page URLs:

_paq.push(["discardHashTag", true]);
Not available
Not available
Not available
Not available
Not available
Not available

Notes

  • Anchors help users get to a specific point on the page without scrolling. Example: #details is the anchor in this link example.com/pricing#details.

Related methods