Ampli Wrapper

이 페이지는 아직 사용하시는 언어로 번역되지 않았습니다. 현재 작업 중이니 잠시 후 다시 확인해 주세요.

The Ampli Wrapper exposes a strongly typed API that matches the definitions in your tracking plan. The tracking library generated by ampli pull tracks and validates events sent to Amplitude Data. Ampli generates the tracking library dynamically to match your tracking plan. Instead of tracking events like this:

java
JSONObject props = new JSONObject();
props.put("name", "Moto 360");

OldLibrary.trackEvent(
  "Product Viewed",
  props
);

Track events like this:

java
ampli.productViewed(
  name = "Moto 360"
)

Ampli helps reduce typos, forgotten properties, and boilerplate code. The Ampli tracking library acts like autocomplete for your analytics.

Was this helpful?