Skip to content

luca-bellenghi/collective.analyticspanel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

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.

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!

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.

You can also uncheck the availability of the rule in the whole site subtree.

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!

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 version 1.0b1)

Developed with the support of:

All of them supports the PloneGov initiative.

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

About

Add more control over the inclusion of JavaScript analytics code of your Plone site

Resources

Stars

Watchers

Forks

Packages

No packages published