This project allows you to manage within Umbraco the URLs that a heatmap analytics service like Crazy Egg will be applied to.
Once this NuGet package is installed, create a document type in Umbraco to manage the settings. A suggested configuration is shown in the screenshot below, but the essential details are:
- the document type alias must be
heatmapAnalytics
- there must be a property with the alias
whereToEnableIt
which uses theUmbraco.MultiNodeTreePicker2
property editor - there must be a property with the alias
whereElseToEnableIt
which uses theUmbraco.TextboxMultiple
property editor - in the Permissions section, allow the document type to be used at the root of the site
It is recommended that you save the document type to source control using uSync.
Create a content node at the root of the site using the document type you created above, add the URLs where you want to enable heatmap analytics, then request the data from the following URL:
https://hostname:port/umbraco/api/HeatmapAnalytics/GetHeatmapAnalyticsUrls
You should see JSON data representing the URLs you selected.
See heatmap-analytics.js in the Escc.EastSussexGovUK
project for an example of how to read and apply the data. Include a similar script on every page where you may want heatmap analytics activated.