groucho
groucho copied to clipboard
Non-browsing activity for favorite counting
trafficstars
Right now getFavoriteTerms() only looks through browsing records. Should be able to access multiple activity records.
Proposing to set these on config or at call time.
Could adjust which activities are used when counting taxonomy properties via config...
groucho.config = {
'taxonomyProperty': 'tags',
'trackExtent': 25,
'trackProperties': ['pageId', 'title', 'type', 'tags'],
'favoriteActivity': ['browsing', 'click']
};
Or that might be something that should be adjustable at call time...
var favActivity = ['browsing', 'click'];
getFavoriteTerms('*', false, threshold, favActivity);
...also, clearly this function needs to change to an options object.
This would affect the "static" favorites, which would be stashed in different forms.