Zum Hauptinhalt springen Skip to page footer

Include Static und Sprachdateien

Cookieman (cookieman)

Cookieman (Example configuration of groups and tracking oobjects)

 

Aktualisiere Sprachdateien

Impressum und Datenschutz

plugin.tx_cookieman.settings.links.dataProtectionDeclarationPid = {$pid.dataprotection}
plugin.tx_cookieman.settings.links.imprintPid = {$pid.imprint}
constants.typoscript

Typoscript-Konfiguration (google Analytics)

# 1. Include provided definitions of TrackingObjects:
@import 'EXT:cookieman/Configuration/TypoScript/TrackingObjects/*.typoscript'

# 2. Add the TrackingObject key to a group (see below how to configure a new group):
plugin.tx_cookieman.settings.groups {
    analytics {
        trackingObjects {
            10 = GoogleAnalytics
        }
    }
}

# 3. Add the tracking code to the TrackingObject:
plugin.tx_cookieman.settings.trackingObjects {
    GoogleAnalytics {
        inject (
        <script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

            ga('create', 'UA-XXXXXXXX-X', 'auto');
            ga('send', 'pageview');
        </script>
        )
    }
}
cookieman.typoscript