rkw/rkw-etracker

Extension for integration of eTracker analytics

Installs: 311

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v10.4.1-stable 2024-06-13 11:53 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();