snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/browser-tracker/markdown/browser-tracker.crossdomainlinker.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; [crossDomainLinker](./browser-tracker.crossdomainlinker.md)

## crossDomainLinker() function

Enable querystring decoration for links passing a filter

<b>Signature:</b>

```typescript
declare function crossDomainLinker(crossDomainLinkerCriterion: (elt: HTMLAnchorElement | HTMLAreaElement) => boolean, trackers?: Array<string>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  crossDomainLinkerCriterion | (elt: HTMLAnchorElement \| HTMLAreaElement) =&gt; boolean |  |
|  trackers | Array&lt;string&gt; | The tracker identifiers which will be configured |

<b>Returns:</b>

void