Automated implementation
Using the automated implementation, you can tag your content without having to modify the URLs activly. This approach is very easy to implement, but it has some drawbacks:- If the users browser don´t have javscript enabled, the click will not be counted.
- If the users browser don´t support the Document Object Model (DOM), the category and logtype will be set to the default option. This only applies to old browsers.
From a statistical point of view, there is only a negligible relative offset when using automated tagging.
The concept
The automated implementation installs a onClick-handler on the document in question. When a user clicks on any link in the document, the handler is invoked. The handler then traverses up the DOM-tree until it finds sufficient category- and logtype-information to construct a proper Linkpulse-tag and performs the click.
The category- and logtype-information can be set as an attribute on any regular HTML-tag.
Attributes
There are four types of attributes that can be used:
| lpLogtype | Specifies the logtype (usually ego, sgo or cgo) |
| lpCategory | Specifies the category-name (does not traverse beyond this point) |
| lpSubCategory | Specifies the category-subname, and traverses further up the DOM tree until it finds a lpCategory-attribute. Any lpSubCategory attributes found in it´s traverse will be prepended with the subcategory-value and a hyphen. |
| lpNoTag | Mark this link as a link that should not be tagged or logged upon clicks. E.g. . |
There are three methods for using auto.js .
Implementing Auto.js with tag atributes
The tag attributes implementation is a mapping of class names or
IDs to LinkPulse categories. The implementation is done via the
configuration file supplementing auto.js. Maintaniance can be handled
by Onsite, or the template systems team.
Tagging using LP prefix.pdf
The
LP prefix implementation uses classes with the LP prefix to identify
them for auto.js as categories. The LP classes are typically
implemented in exsisting elements such as div or table tags.
Implementing Auto.js with LP Category
The LP Category implementation requres the writing of LP category
begin and end tags in the templates of the site. Maintainance must be
handled by the template systems team.