discardHashTag
The discardHashTag() method removes anchors (#) from tracked page URLs.
Syntax
discardHashTag(enableFilter)Not availableNot availableNot availableNot availableNot availableNot availableParameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| enableFilter | boolean | Whether anchors (#) should be removed from tracked page URLs. | Yes |
Examples
To remove anchors (#) from tracked page URLs:
_paq.push(["discardHashTag", true]);Not availableNot availableNot availableNot availableNot availableNot availableNotes
- 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
Updated 15 days ago