wowzamediasystems / wse-plugin-analytics Goto Github PK
View Code? Open in Web Editor NEWWowza Streaming Engine™ module to send streaming statistics to Google Analytics.
License: Other
Wowza Streaming Engine™ module to send streaming statistics to Google Analytics.
License: Other
It would be very useful to add the information on the Played/Published) time (on Stop/UnPublish event).
For this purpose, it should be used the "Value" field of GA events, as described on their KB.
If you have a space in the Wowza Application Name, the call to Google Analytics fails. The AppName variable needs to have the space character replaced with %20. A full fix should be URI encoding the appName, and GAPrefix variables:
public GoogleAnalytics(String appname, String urchin, String domain, String host, String prefix)
{
appName = appname;
urchinCode = urchin;
gaDomain = domain;
gaHost = host;
GAPrefix = prefix;
}
Additionally, since GAPrefix is optional, the pre-pend of GAPrefix should be dependent upon it containing data. If GAPrefix is null, then it should not be added to the QueryString string.
String eventCaller = "http://www.google-analytics.com/__utm.gif?utmdt=" + stream + "&utmt=event&utme=5(" + eventName + "*" + eventType + "*" + stream + ")&utmwv=4.4sh" + "&utmn=" + generateUTMN() + "&utmhn=" + gaDomain + "&utmr=" + referrer + "&utmp=%2F" + GAPrefix + "%2F" + appName + "%2F" + stream + "&utmac=" + urchinCode + "&utmcc=" + utmcc + "&utmvid=" + visitorID + "&utmip=" + returnGAIP(ipaddress) + "&uip=" + returnGAIP(ipaddress);
Lastly, I believe you have the Action and Categories reversed. Currently, when data is posted for events, the actions says "HTTPCupertino" or "rtmp", whereas the category says "play" or "stop".
Looking at the GA reports about Wowza, I see the stream actions listed as Event Categories and the stream protocols listed as Event Actions.
IMO it'd be more logical to swap these two infos.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.