0

我在我的应用程序中使用下面的代码,但我不确定事件是否被推送到我的仪表板,我什至没有看到任何错误,如何调试聪明的点击事件

     var clevertap = {event:[], profile:[], account:[], onUserLogin:[], notifications:[], privacy:[]};
 // replace with the CLEVERTAP_ACCOUNT_ID with the actual ACCOUNT ID value from your Dashboard -> Settings page
clevertap.account.push({"id": "CLEVERTAP_ACCOUNT_ID"});
clevertap.privacy.push({optOut: false}); //set the flag to true, if the user of the device opts out of sharing their data
clevertap.privacy.push({useIP: false}); //set the flag to true, if the user agrees to share their IP data
 (function () {
         var wzrk = document.createElement('script');
         wzrk.type = 'text/javascript';
         wzrk.async = true;
         wzrk.src = ('https:' == document.location.protocol ? 'https://d2r1yp2w7bby2u.cloudfront.net' : 'http://static.clevertap.com') + '/js/a.js';
         var s = document.getElementsByTagName('script')[0];
         s.parentNode.insertBefore(wzrk, s);
  })();
4

2 回答 2

1

在cleverTap 中,如果事件被成功推送,那么您将在clevertap 仪表板中收到通知。细分-> 查找人员 ->按身份(输入身份)-> 在活动下的配置文件中,您可以看到在 cleveTap 仪表板中跟踪的所有事件,因此我们可以在此确认。

于 2021-12-18T10:44:32.623 回答
1

我知道这有点晚了,但这是我的答案:

当我集成clevertap SDK 时,我曾经将应用程序指向testcletap 帐户并测试和验证那里的事件。唯一的挑战是您必须在仪表板上找到您的个人资料。一旦您知道clevertap ID或配置文件身份(如果您正在设置一个)通过使用ADB查看调试控制台(适用于android),这应该很容易

发送事件是一回事,但该数据的实际使用将由在clevertap 仪表板上进行分析的人。因此,此方法将帮助您了解

  1. 人们将如何在仪表板上看到该事件/数据。
  2. 如果配置文件合并不正确(如果有多个用户)
  3. 如果在clevertap 端接收事件有任何问题
  4. 如果在仪表板上重新接收到事件名称和参数并且是正确的。

更重要的是,另一位团队成员(即使不是开发人员)可以帮助您验证事件(第 4 步),而无需在他/她的笔记本电脑上设置任何内容并安装调试版本。他可以通过从指向clevertap TEST 帐户的应用程序触发事件,在clevertap 仪表板上查找它!

除此之外,我建议使用测试帐户来测试事件。这是因为它可以帮助您将测试数据与生产数据分开,并且您可以从仪表板中完全清除 TEST 帐户,以防数据变得过于混乱。

于 2022-01-08T17:19:26.060 回答