AppAnalytics Class
Contains methods to help with AppExchange App Analytics use cases, such as minimizing subscriber attrition and obtaining product insights.
Use AppAnalytics and its methods to log App Analytics custom interactions.
These are methods for AppAnalytics.
-
logCustomInteraction(interactionLabel, interactionId)
Logs the custom interaction using a label that you provide as an enum value and an interaction ID.
-
logCustomInteraction(interactionLabel, interactionUuid)
Logs the custom interaction using a label that you provide as an enum value and an interaction ID that you provide as an Apex UUID.
-
logCustomInteraction(interactionLabel)
Logs the custom interaction using a label that you provide as an enum value.
Logs the custom interaction using a label that you provide as an enum value and an interaction ID.
public static void logCustomInteraction(Object interactionLabel, Id interactionId)
-
interactionLabel:
Type:
Object A value used to label the custom interaction. The value of interactionLabel must be an enum with the same namespace as the code that calls the
logCustomInteractionmethod. -
interactionId:
Type: Id
An Apex ID that is associated with the custom interaction. The
interactionIdthat you provide is hashed and tokenized before it’s included in AppExchange App Analytics package usage logs.
Type: Void
Logs the custom interaction using a label that you provide as an enum value and an interaction ID that you provide as an Apex UUID.
public static void logCustomInteraction(Object interactionLabel, System.UUID interactionUuid)
-
interactionLabel:
Type:
Object A value used to label the custom interaction. The value of interactionLabel must be an enum with the same namespace as the code that calls the
logCustomInteractionmethod. -
interactionUuid:
Type: System.UUID
An Apex UUID that is associated with the custom interaction. The
interactionIdthat you provide is hashed and tokenized before being included in AppExchange App Analytics package usage logs.
Type: Void
Logs the custom interaction using a label that you provide as an enum value.
public static void logCustomInteraction(Object interactionLabel)
-
interactionLabel:
Type:
Object A value used to label the custom interaction. The value of interactionLabel must be an enum with the same namespace as the code that calls the
logCustomInteractionmethod.
Type: Void