You might recall a while ago I wrote about integrating Google Analytics with Lotus Connections 2.5, today we are going to cover Webtrends integration. Much like Google Analytics, integrating Webtrends Analytics should be as simple as dropping a bit of Javascript code in to the Lotus Connections footer, that looks something like this “<script type=”text/javascript” src=”http://webtrendsserver.domain/html.nsf/WebTrendsLive.js”></script>” This actually works just fine in Activities, Blogs, Bookmarks, Communities, Homepage, and Profiles, it is Files and Wikis that break when you do this. When I say break, I mean with this code in the footer, all you will see when loading Files or Wikis is the header and a blank screen. We tried varying forms of asynchronous Webtrends code without much luck, finally after a little help from Luis Benitez, and our friends at Lotus Support we came up with this Webtrends code that worked in the footer for all of the services. “<script type=”text/javascript”> var tmpOCWTLProtocol = ((“https:” == document.location.protocol) ? “https://” : “http://”); var webTrends = document.createElement(“script”); webTrends.src = tmpOCWTLProtocol + “webtrendsserver.domain/WebTrendsLive.js”; webTrends.type = ‘text/javascript’; document.body.appendChild(webTrends); </script> ” As usual your mileage may vary, but hopefully this helps if you are implementing Lotus Connections 2.5 with Webtrends
Thanks for sharing!
Thanks!
Great info, thanks for putting this together Mitch.