如何确认cleverTap事件推送
How to confirm cleverTap event push
我在我的应用程序中使用下面的代码,但我不确定事件是否被推送到我的仪表板,我什至没有看到任何错误,如何调试巧妙的点击事件
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);
})();
在 cleverTap 中,如果事件推送成功,那么您将在 clevertap 仪表板中收到通知。 Segments -> Find People -> By Identity(输入身份) -> 在 Activity 下的个人资料中 你可以在 cleveTap 仪表板中看到所有跟踪的事件,因此我们可以在此处确认。
我知道有点晚了,但这是我的答案:
当我集成clevertap SDK时,我曾经将应用程序指向测试clevertap帐户并测试和验证那里的事件。唯一的挑战是您必须在仪表板上找到您的个人资料。一旦你知道 clevertap ID 或配置文件标识(如果你正在设置一个),这应该很容易通过使用 ADB 查看调试控制台(for android)
发送事件是一回事,但这些数据的实际使用将由在 clevertap 仪表板上进行分析的人员进行。因此,此方法将帮助您了解
- 人们如何在仪表板上看到 event/data。
- 如果配置文件合并不正确(在多个用户的情况下)
- 如果在 clevertap 端接收事件有任何问题
- 如果仪表板上收到的事件名称和参数是正确的。
更重要的是,另一名团队成员(即使不是开发人员)可以帮助您验证事件(第 4 步),而无需他在 his/her 笔记本电脑上进行任何设置并安装调试版本。他可以通过从指向 clevertap TEST 帐户的应用程序触发事件,在 clevertap 仪表板上查找它!
除此之外,我建议使用测试帐户来测试事件。这是因为它可以帮助您将测试数据与生产数据分开,并且您可以从仪表板中完全清除测试帐户,以防数据变得太乱。
我在我的应用程序中使用下面的代码,但我不确定事件是否被推送到我的仪表板,我什至没有看到任何错误,如何调试巧妙的点击事件
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);
})();
在 cleverTap 中,如果事件推送成功,那么您将在 clevertap 仪表板中收到通知。 Segments -> Find People -> By Identity(输入身份) -> 在 Activity 下的个人资料中 你可以在 cleveTap 仪表板中看到所有跟踪的事件,因此我们可以在此处确认。
我知道有点晚了,但这是我的答案:
当我集成clevertap SDK时,我曾经将应用程序指向测试clevertap帐户并测试和验证那里的事件。唯一的挑战是您必须在仪表板上找到您的个人资料。一旦你知道 clevertap ID 或配置文件标识(如果你正在设置一个),这应该很容易通过使用 ADB 查看调试控制台(for android)
发送事件是一回事,但这些数据的实际使用将由在 clevertap 仪表板上进行分析的人员进行。因此,此方法将帮助您了解
- 人们如何在仪表板上看到 event/data。
- 如果配置文件合并不正确(在多个用户的情况下)
- 如果在 clevertap 端接收事件有任何问题
- 如果仪表板上收到的事件名称和参数是正确的。
更重要的是,另一名团队成员(即使不是开发人员)可以帮助您验证事件(第 4 步),而无需他在 his/her 笔记本电脑上进行任何设置并安装调试版本。他可以通过从指向 clevertap TEST 帐户的应用程序触发事件,在 clevertap 仪表板上查找它!
除此之外,我建议使用测试帐户来测试事件。这是因为它可以帮助您将测试数据与生产数据分开,并且您可以从仪表板中完全清除测试帐户,以防数据变得太乱。