setCrossDomainLinkingTimeout

The setCrossDomainLinkingTimeout() method sets the time period during which sessions on linked domains are treated as one session. The default time is 3 minutes (180 seconds).

This method works when you use enableCrossDomainLinking().

Syntax

setCrossDomainLinkingTimeout(seconds)
setCrossDomainLinkingTimeout(seconds): void
setCrossDomainLinkingTimeout(seconds): void
setCrossDomainLinkingTimeout(seconds): void
setCrossDomainLinkingTimeout(seconds): void
setCrossDomainLinkingTimeout(seconds): void
setCrossDomainLinkingTimeout(seconds): void

Parameters

Seconds (number, required)

The time period in seconds during which sessions on linked domains are treated as one session.

Examples

To set the timeout to 120 seconds for linked domains:

_paq.push(["setCrossDomainLinkingTimeout", 120]);
CrossDomainTracking.setCrossDomainLinkingTimeout(120);
CrossDomainTracking.setCrossDomainLinkingTimeout(120);
CrossDomainTracking.setCrossDomainLinkingTimeout(120);
CrossDomainTracking.setCrossDomainLinkingTimeout(120);
CrossDomainTracking.setCrossDomainLinkingTimeout(120);
CrossDomainTracking.setCrossDomainLinkingTimeout(120);

Related methods