Created
August 23, 2011 18:39
-
-
Save araddon/1166096 to your computer and use it in GitHub Desktop.
Hello World Webtrends Extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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