rkw/rkw-etracker

Extension for integration of eTracker analytics

Installs: 201

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v8.7.60-stable 2021-07-23 13:52 UTC

README

When using a Cookie-Consent-Tool you have to use a timeout for enabling cookies, because the eTracker-Script is loaded asynchronous and thus the relevant script-methods won't be available directly.

Example:

function waitForEtracker(){
    if(typeof _etracker !== "undefined"){
        _etracker.enableCookies(rkwEtrackerDomain);
        console.log('eTracker: cookies enabled');
    } else{
        setTimeout(waitForEtracker, 250);
    }
}
waitForEtracker();