Super Properties
Manage super properties that are automatically merged into every event captured by the Mythic Analytics SDK.
Super properties
Super properties are automatically merged into every event. Use them for values that should be attached to all subsequent events, like a user's subscription plan or A/B test variant. They are persisted in storage and survive page reloads until cleared.
Super properties are attached to every event you send. To set properties on the user's profile instead, pass them as the second argument to identify(), which sends them as a $set event.
set(properties)
Set one or more super properties. Overwrites existing values.
mythic.set({ plan: "enterprise", team_size: 50 });
set_once(properties)
Set super properties only if they do not already exist.
mythic.set_once({ first_seen_campaign: "spring_2024" });
unset(property)
Remove a single super property.
mythic.unset("temporary_flag");
get_property(property)
Retrieve a single super property value.
const plan = mythic.get_property("plan"); // "enterprise"
get_super_properties()
Retrieve all super properties as an object.
const allProps = mythic.get_super_properties();
clear_super_properties()
Remove all super properties.
mythic.clear_super_properties();