Hi, the WAFMetrics allows you to add additional tracking data for Google Analytics. The system is only compatible with webforms, and it is only active when you are not logged in in edit. (Either log out of edit using the log out button or close all browser window, before you open a new one, to make sure the edit session is not active.)
During a page view Webnodes collects all tracking information that is going to be sent to google in the WAFMetrics.Tracking collection. This collection is uniquely associated with the current pageview. The collections contains instances of classes that implements the abstrackt class ITracking. At the end of the page view, Webnodes will call the "GetScript" method of each ITracking collected and insert the necessary google analytics javascript code at the end of the HTML document.
There are several built in classes that implements the ITracking interface. The most obvious is the PageViewTracking class. An instance of this is automatically added to every pageview.
Other built in classes:
TrackingVariable ( calls the "pageTracker._setVar" google method )
EcomerceTracking ( calls the "pageTracker.__addTrans" etc. google methods )
You can add your own if you want to, just inherit from ITracking.