rkw/rkw-etracker

Extension for integration of eTracker analytics

Installs: 316

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v10.4.4-stable 2024-11-28 15:44 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();