1

The quickstart guide for the Optimizely Android SDK includes the following example:

private void userClickedImportantButton() {
      Optimizely.trackEvent("ImportantButtonClicked");
      Optimizely.dispatchEvents(); // Manually send the event logs back to the server
  }

This can be found here

However, the example is incorrect and doesn't actually work - it appears that dispatchEvents() is an instance method, not static method, of the Optimizely class.

What is the correct way to use it?

4

1 回答 1

0

Optimizely 的人在他们的社区论坛帖子上回答了我的问题:

https://community.optimizely.com/t5/Mobile-Apps/Android-how-to-use-Optimizely-dispatchEvents/mp/10907#M121

答案是dispatchEvents()已弃用,您应该sendEvents()改用它。

于 2015-05-22T18:04:43.190 回答