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?