Introduction
This package provides a local analytics behaviour for Dexterity-based content types within Plone. By associating the Local Analytics behaviour with a given context, and configuring the settings on that context accordingly, an analytics snippet (typically a <script> tag for page tracking) will be rendered onto the page.
The same analytics snippet will be applied to that context and all children. The only exception to this is where multiple objects in the hierarchy have this behaviour applied – in that case, the closest parent to the current object will take precedence.
Why?
This behaviour exists for several reasons:
By default, Plone’s support for web analytics is one configuration per site. Having a behaviour means allowing one configuration per area (or content object).
To provide optimised preset analytics profiles (Google Analytics is the only built-in at present)
Do so whilst guarding against abitrary script injection by regular users
Adding other analytics providers
This behaviour is mostly extendable in its current state. Adding a new analytics provider is a cause of creating and registering a class or object conforming to the collective.behavior.localanalytics.IAnalytics interface and it will automatically be available.
Future
Allow arbitrary parameters to be passed to analytics providers for tag generation.
At present, only a basic textual ID paramter is supported. In future, since other analytics providers will/may more information than just an id attribute to generate a HTML snippet for rendering.
Associated Projects
- collective.spaces
collective.spaces is a simple way of creating mini-sites within the Plone CMS, with each mini-site based on a fully-customisable template.
Contributors
David Beitey, Author
Changelog
1.0 (2013-10-10)
Package created using templer [davidjb]
Metadata
Release files for collective.behavior.localanalytics 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| collective.behavior.localanalytics-1.0.zip | 29.3 kB | Without provenance | Details |
Release files / collective.behavior.localanalytics-1.0.zip
| Download URL | collective.behavior.localanalytics-1.0.zip |
|---|---|
| Size | 29.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5c588263980b248439d2a78e100778f9e4cbba8db8cea1a664c1fc66331f3e4
|
|
BLAKE2b-256 checksum How to use checksums |
29444f072b17a534bcd3e93861daeb97a71d47e652af8663e5691079610ef3bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for collective.behavior.localanalytics 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.