on 03-17-2015 9:20 AM
HI folks,
I assume that with Google Analytics a "simpe" user access count is possible for a SAPUI5 app. I'm curious to know whether a profound and granular tracking/reporting is possible here with Google Analytics + SAPUI5. Suppose I have a simple app hosted on HCP. I have several xml views with diverse buttons wherefrom one can access a pdf document or other pages. I'd like to track these clicks, i.e. how many times users accessed this document. Please advise. What would one need to adapt if it would look like below.
Appreciate your support and tips. Thanks and regards
button in xml view:
<Button type="Emphasized" text="Emphasized" press="onPress" />
controller:
onPress: function() {
window.open("./docu/testdoc.pdf", "_blank");
},
Hi Daniel,
It is possible using Google's event tracking mechanism Event Tracking - Web Tracking (ga.js) - Google Analytics &mdash; Google Developers
So your code would be like :
onPress: function(oEvent) {
_gaq.push(['_trackEvent', 'Documents', 'ButtonPress', 'Show Test Document']);
window.open("....");
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.