Ibm mobilefirst MobileFirst 7.1分析无法捕获自定义数据

Ibm mobilefirst MobileFirst 7.1分析无法捕获自定义数据,ibm-mobilefirst,mobilefirst-analytics,Ibm Mobilefirst,Mobilefirst Analytics,我正在使用IBMMFP7.1并尝试将简单的自定义数据发送到localhost服务器。代码如下所示: .controller('favoriteButtonCtrl', function($scope) { var event =''; $scope.ButtonA = function(){ event = {buttonPress: 'buttona'}; WL.Analytics.log(event, 'Custom event for button

我正在使用IBMMFP7.1并尝试将简单的自定义数据发送到localhost服务器。代码如下所示:

.controller('favoriteButtonCtrl', function($scope) {
    var event ='';
    $scope.ButtonA = function(){
      event = {buttonPress: 'buttona'};
      WL.Analytics.log(event, 'Custom event for button A press');
      WL.Analytics.send();
      alert(event.buttonPress);
    };
    $scope.ButtonB = function(){
      event = {buttonPress: 'buttonb'};
      WL.Analytics.log(event, 'Custom event for button B press');
      WL.Analytics.send();
      alert(event.buttonPress);
    };
    $scope.ButtonC = function(){
      event = {buttonPress: 'buttonc'};
      WL.Analytics.log(event, 'Custom event for button C press');
      WL.Analytics.send();
      alert(event.buttonPress);
    };
})
第一次尝试成功,我可以使用数据创建饼图。然而,当我稍后重试时(使用不同的网络,我确实清除了浏览器的缓存和cookies),我无法从我的应用程序中获取任何新数据

记录在服务器日志上的不是分析级别,而是跟踪级别。

来自评论:


刚才我正在使用我的第一个互联网连接。清理项目并重新启动服务器。它又起作用了!所有的数据加起来,我在分析仪表板上看到了自定义数据。我想知道出了什么问题


这似乎是用户错误,因为连接到的网络与服务器运行的网络不同,因此,如果服务器和设备不在同一网络上,则无法收集数据…

什么是“使用不同的网络”应用程序能够连接到MobileFirst服务器吗?您的设备是否在同一网络上?你的wl.analytics.url的JNDI属性是什么?我正在使用不同的internet连接,因此我的ip在我仍然使用localhost时发生了更改(以防这可能是原因)。我正在使用development server,没有更改任何默认属性。刚才我正在使用我的第一个internet连接。清理项目并重新启动服务器。它又起作用了!所有的数据加起来,我在分析仪表板上看到了自定义数据。我想知道出了什么问题。。。