Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.analyticspanel

How to install collective.analyticspanel

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.analyticspanel
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.0
0.3.0Never BuiltWhy not?
0.1.0 Available View build log
Windows (64-bit)
Mac OS X (10.5+)
0.1.0
0.3.0Never BuiltWhy not?
0.1.0 Available View build log
Linux (32-bit)
0.3.0 Available View build log
0.2.0 Available View build log
0.1.0 Available View build log
Linux (64-bit)
0.3.0 Available View build log
0.2.0 Available View build log
0.1.0 Available View build log
 
License
GPL
Lastest release
version 0.3.0 on Nov 28th, 2012

Introduction

This product will replace the basic Plone feature for adding statistical and analytics JavaScript to your site with an advanced version that:

  • add possibility to add specific JavaScript when the user is inside error page (useful for special code when on the "Page not found")
  • add possibility to customize code for a site area or a single content
  • not display JavaScript code for specific area of the site

How to use it

When installed, the basic Plone feature for handling JavaScript for statistics is hidden from the standard "Site settings" (in facts, it's moved to a new configuration panel called "Analytics settings") and new options are now available.

JavaScript for web statistics support
Basic feature

Nothing new there: this is simply the basic Plone feature about JavaScript inclusion, just moved in this separate panel. This is always the default code included when other options don't match.

JavaScript to be included when an error message is get
Code for error page

When this product is installed you can control JavaScript code based on error messages (ignoring the default one). The main motivation is to use this for the NotFound (HTTP 404) error.

However this feature is still generic... you could probably use it for other error code (like ValueError) if this make sense for you!

JavaScript to be included inside specific site's paths
Code for specific site's path

You can use this section for putting a list of absolute site subsection you want to control, adding a specific JavaScript section and ignoring the default one.

When more than a provided path match the current URL, the most specific ones is used.

This kind of rule has a policy selection.

Policy selection
  • The default one ("to the whole subtree") is for applying the rule to the whole subtree.
  • Using "only to the context" you can choose to apply the analytics code only to the content and not to sub-contents inside it.
  • Using "to the context and non-folderish children" you are applying the analytics code only to the content, and to all sub-contents inside it that are not folders.

This last policy seems a little complex, but there are analytics tools (at least: Piwik) where this can be useful to define custom reports for sections of the site.

As the concept of "folder" in Plone can change with different add-ons installed, this last policy take care of using as "folder" what is defined in the "Folderish types" configuration option.

Folderish types selection panel

The Plone native "Folder" type is selected by default.

Hiding

You can also use this product for hiding analytics code from specific site areas or error pages, leaving a default one for the rest of the site.

Just configure options with empty code!

Dependencies

This product has been tested on:

  • Plone 3.3 (read below)
  • Plone 4.2

It's based on plone.app.registry that it not part of Plone on 3.3 version. You need to be sure that a compatible version is used (in my experience: use plone.app.registry 1.0b1 and plone.registry 1.0).

Credits

Developed with the support of:

All of them supports the PloneGov initiative.

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

Changelog

0.3.0 (2012-08-28)
  • Italian i18n fixes [keul]
  • Added a way to set rules for subsections and leaf contents inside (subcontents that are not folderish) [keul]
0.2.0 (2012-07-13)
  • Some styles fixes in the management panel [keul]
  • Added new option: apply_to_subsection
  • Added the "autoresize" CSS class for textareas (in the case you also use collective.autoresizetextarea) [keul]
0.1.0 (2012-07-04)
  • Initial release

Subscribe to package updates

Last updated Nov 28th, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.