rkw/rkw-etracker

Extension for integration of eTracker analytics

Installs: 196

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v8.7.59-stable 2021-02-12 07:50 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();