For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.

Ampli Wrapper

This page hasn't yet been translated into your language. We're working on it, so check back soon.

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?