跟踪潜在客户事件

Track events for leads Intercom

我如何通过 JavaScript API 跟踪潜在客户的事件。在像这样的文档讨论中:

When using the JavaScript API, adding the code to your app makes the Events API available. Once added, you can submit an event using the trackEvent method. This will associate the event with the Lead or currently logged-in user or logged-out visitor/lead and send it to Intercom. The final parameter is a map that can be used to send optional metadata about the event.

但是。它不起作用。 当我跟踪事件时,对讲机创建新用户。未提交潜在客户活动。

之前在 Intercom 管理面板中创建了主管。

绝对可以在不创建潜在客户的情况下跟踪潜在客户的事件。

代码应如下所示:

Intercom('trackEvent', 'invited-friend');

这在他们的 API 文档中没有记录,但是您没有传递 email 参数而是使用 anonymous_email 并且 Intercom 将其创建为潜在客户。

例如,要简单地创建潜在顾客,您可以这样做:

Intercom('update', {
  "anonymous_email": email,
  "name": name
});