ttree/googleanalytics

Simple TypoScript objects to integration Google Analytics tracking codes on your Neos CMS Project

Installs: 1 659

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 0

Language:HTML

Type:neos-package

2.0.0 2017-10-04 14:56 UTC

This package is auto-updated.

Last update: 2024-11-26 05:47:19 UTC


README

BSD License Latest Stable Version

Google Analytics TS Object

This package contains a TypoScript object to integrate Google Analytics tracking code in your Neos CMS project.

How to integrate your tracking code?

Add this to your TypoScript to add the tracking snippet and set your code:

prototype(Neos.Neos:Page)
    body.javascripts.analytics = Ttree.GoogleAnalytics:TrackingCode {
        trackingCode = 'UA-...'
    }
}

Note: By default the tracking code is included only in Production context. If you need to include the tracking code also in Development context, check the code in TrackingCode, you can adjust the Eel expression at @if.includeTrackingCode as you need.

Acknowledgments

Development sponsored by ttree ltd - neos solution provider.

We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us.

License

The MIT License (MIT). Please see LICENSE for more information.