main.js

Intro here

dc.handler

dc.handler is a special section of main.js that allows certain further configurations and special functions to be engaged on the specific site. Various options for this handler are laid out below.

Adding filter for Google Analytics by locale

Inside the settings object, a gafilter object with the following function can be added to filter out any GA data from a certain locale, for example, the European Union

dc.handler = { settings: { gafilter: function() { return dc.util.Geo.isEU(); } } };

TODO add other possible options besides isEU()

The following JavaScript library would also need to be added to the config.xml file for this to function:

<Web.Global Script="/js/dc.locale.js" />