snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.discardhashtag.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [discardHashTag](./browser-tracker.discardhashtag.md)

## discardHashTag() function

Strip hash tag (or anchor) from URL

<b>Signature:</b>

```typescript
declare function discardHashTag(enable: boolean, trackers?: Array<string>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  enable | boolean | Whether to enable stripping of hash |
|  trackers | Array&lt;string&gt; | The tracker identifiers which will be configured |

<b>Returns:</b>

void