LANDSCAPE

From Mixpanel

Replace mixpanel.track, identify, and people.set with Landscape verbs.

Map calls

Mixpanel Landscape
mixpanel.init(token) init({ endpoint })
mixpanel.track(event, properties) track(event, properties)
mixpanel.identify(userId) identify(userId)
mixpanel.people.set(traits) setUserProperties(traits)
mixpanel.track_pageview page(properties)
mixpanel.reset() reset()
mixpanel.register super-properties pass fields on each track, use an enricher, or set defaultProperties on the server client

Replace an event

import { init, identify, setUserProperties, track } from "@hyperreal/landscape-core";

init({ endpoint: "/api/events" });
identify("user_123");
track("Purchase", { amount: 49 });
setUserProperties({ plan: "pro" });

Constraints