Skip to content

Instantly share code, notes, and snippets.

@araddon
Created August 23, 2011 18:39
Show Gist options
  • Select an option

  • Save araddon/1166096 to your computer and use it in GitHub Desktop.

Select an option

Save araddon/1166096 to your computer and use it in GitHub Desktop.
Hello World Webtrends Extension
(function(WT){
if (!window.Webtrends){
return; // ensuring Webtrends has loaded
}
function hello_transform(dcs){
console.log("in my hello world transform");
dcs.DCSext.myparam = 'hello world';
}
function hello_loader(dcs,config){
dcs.addTransform(hello_transform,'all');
console.log("config values? " + config.myparam);
}
// explicity callback we are done loading
Webtrends.registerPlugin('hello',hello_loader);
})(window.Webtrends);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment