This is a migrated thread and some comments may be shown as answers.

Nativescript App. Unable to view Analytics data on Telerik Platform.

1 Answer 31 Views
Monitor integration
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Corey Mitchell
Top achievements
Rank 2
Corey Mitchell asked on 04 Aug 2016, 04:56 AM

Hello All,

I've developed a Nativescript App and have included the plugin "nativescript-telerik-analytics" in my App. Now, I've configured the "appId" appropriately "##Snippet 1". The User is shown the Dashboard where I'm tracking some Events and invoked the "Analytics.stop()" method (##Snippet 2). I've enabled "Live Mode" and have waited more than 5 minutes, but I'm not able to view the data on the Analytics Dashboard.

I'd appreciate any suggestions. Thanks in advance.

 

##Snippet 1

var application = require("application"),
Analytics = require('nativescript-telerik-analytics'),
elConfig = require("./shared/everlive-config");


application.on(application.launchEvent, function(context) {
  Analytics.init({ appId: elConfig.Config.getApiKey() });
  Analytics.start();
});

 

##Snippet 2

var Analytics = require('nativescript-telerik-analytics'),
timer = require('timer');

DashboardPage.prototype.pageLoaded = function(args) {

Analytics.trackEvent('MyCategory.MyEvent');

// Register a value on a specific feature
Analytics.trackValue('myvalue', 245);

Analytics.stop();

}

1 Answer, 1 is accepted

Sort by
0
Darin
Telerik team
answered on 04 Aug 2016, 03:48 PM
Hi,

Could you check the result of elConfig.Config.getApiKey()? I suspect that this returns the Data API key and not the application id. The correct value for the appId parameter for your project is z4zrm82qip7tbw8o. Could you try with this value instead?

Regards,
Darin
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Monitor integration
Asked by
Corey Mitchell
Top achievements
Rank 2
Answers by
Darin
Telerik team
Share this question
or