ttree/googleanalytics

Last activity 04 Jan 2018 1 1 1659
composer require ttree/googleanalytics

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

2.0.0

Version
2.0.0
Type
neos-package
Release Date
Oct 04, 2017 14:56
Source
git
Distribution
zip
Requires
MIT
  • #analytics
  • #neos
  • #tracking
70248f3016d1fde4d4039936de98c46a784c2be2

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.

The content of the readme is provided by Github
The same vendor provides 48 package(s).