You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
We've been working on integrating the plugin into the main PhoneGap one, so this version is out of date. Does your code still apply to the version we have here? -- https://github.com/blackberry/GAPlugin
Hi,
For add support to track type "screen" this has to be added
plugin/src/blackberry10/index.js
--just below case "item"
case "screen":
optionString += "&t=screenview";
optionString += getParameter(args, "an", "appName");
optionString += getParameter(args, "av", "appVersion");
optionString += getParameter(args, "aid", "appId");
optionString += getParameter(args, "aiid", "appInstallerId");
optionString += getParameter(args, "cd", "screenName");
break;
and in plugin/www/client.js
--just below _self.trackTransaction = function
//Screen hit tracking,
//
_self.trackScreen = function(screenName, appName, appVersion, appId, appInstallerId){
This will allow to track screens in GA
Example:
var screenName = encodeURIComponent('My Screen 1');
var appName = blackberry.app.name;
var appId = blackberry.app.id;
var appVersion = blackberry.app.version;
sError = community.googleanalyticsplugin.trackScreen(screenName,appName, appVersion, appId);
The text was updated successfully, but these errors were encountered: