Analytics tags
We can obtain specific analytics information from the portal using analytics tags for the portal resources. We might want to know which types of users visit the portal site most frequently, for example by age group or other characteristics. To address mostly young professionals, we can create an analytics tag targetAudience:youngProfessionals ; we can then associate the tag with all resources containing content for this target user group. By looking at the visits on these pages we can determine whether the main user group of the portal site is young and new in their job.
An analytics tag in the portal consists of a name-value pair we can associate with portal or Web Content Manager resources. When you add a resource to an analytics tag, a microformat is injected into the markup of the resource. Analytics provider applications can read this microformat and track which resources associated with the analytics tag users visited.
The association of a resource to an analytics tag is called an analytics tag mapping. Resources that can be associated to an analytics tag include portal pages, portlets, and Web Content Manager content items. The relation between a resource and an analytics tag is as follows:
- One resource can be added to several general analytics tags, but it can be added only once to each analytics tag.
- One analytics tag can contain several resources but only one of each resource.
To associate a resource with an analytics tag, you add the tag name and value to the resource. For example, the tag name can be season promotion , and values can be christmas or easter . This way use the analytics tags to group the portal resources by purpose and then analyze which user groups visit these resources most frequently.
The portal stores analytics tags as regular portal tagging and rating tags, but with the following specific naming convention for analytics tags only:
name#value
where the tagging and rating tag is made up by a combination of the name and value of the analytics tag, separated by a hash sign character ( # ). Tags that are encoded like this show in the Tag Center under the tab Analytics.
- Work with analytics tags
To work with analytics tags, the portal provides a dialog. We can create new analytics tag mappings and view and delete existing ones.