FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...
This extension allows you to easily insert Google Analytics "tags" into your Preside website's pages.
From a commandline at the root of your application:
box install preside-ext-google-analytics
Once installed, login to the Preside admin and head to System -> Settings -> Google Analytics and enter your analytics credentials.
The extension will take care of inserting analytics "tags" into your layout automatically for you, you won't need to do anything else. However, you can customize the layouts that are effected and the script itself.
To customize the layouts, set the
settings.googleAnalytics.layouts variable in your
settings.googleAnalytics.layouts = [ "main", "newsletter" ]; // default is [ "main" ]
To customize the output of the analytics script, implement your own view at
/views/general/_googleAnalyticsTags.cfm, the view will be passed two
layout. For example:
Pull requests, issues and ideas are all welcome :) Please use Github or get in touch with the Preside team on our Preside Slack.
We could obviously do a lot more with this extension and would be great to collaborate with anyone who has ideas!
Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.