carbon / googletracking
Include GoogleTracking in Neos
Installs: 1 200
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:neos-carbon
Requires
- neos/neos: ~3.0 || ~4.0
README
Carbon.GoogleTracking Package for Neos CMS
This package gives you some handy prototypes for including Google Tracking and site verification code. The best practice is to include carbon/googletracking
into your composer.json from your site package. Now you just can edit your Settings.yaml. Take a look at the Settings.yaml to see all the options. If you want to want an automatic integration, you have to set AddToPagePrototype
in your Settings.yaml to true
.
Hint
If you want to have the tracking only in the Production context, just create a Production
folder into your Configuration
folder. Now create a production only Settings.yaml
inside that folder. Et voilà! Now you can set your configuration which will only be activated if Neos is in the Production context.
Installation
Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml
). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site packages located under Packages/Sites/
. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar
) and run following command:
composer require carbon/googletracking --no-update
The --no-update
command prevent the automatic update of the dependencies. After the package was added to your theme composer.json
, go back to the root of the Neos installation and run composer update
. Et voilà! Your desired package is now installed correctly.
License
Licensed under MIT, see LICENSE