AppAnalytics Class
Namespace
Usage
Example
1public void submitClicked() {
2 Id jobId = System.enqueueJob(new MyQueueable(colorValue));
3 IsvPartners.AppAnalytics.logCustomInteraction(
4 MyPageInteractions.SUBMIT_CLICKED, jobId);
5AppAnalytics Methods
These are methods for AppAnalytics.
logCustomInteraction(interactionLabel, interactionId)
Signature
public static void logCustomInteraction(Object interactionLabel, Id interactionId)
Parameters
-
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 logCustomInteraction method.
-
interactionId:
Type: Id
An Apex ID that is associated with the custom interaction. The interactionId that you provide is hashed and tokenized before it’s included in AppExchange App Analytics package usage logs.
Return Value
Type: Void
logCustomInteraction(interactionLabel, interactionUuid)
Signature
public static void logCustomInteraction(Object interactionLabel, System.UUID interactionUuid)
Parameters
-
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 logCustomInteraction method.
-
interactionUuid:
Type: System.UUID
An Apex UUID that is associated with the custom interaction. The interactionId that you provide is hashed and tokenized before being included in AppExchange App Analytics package usage logs.
Return Value
Type: Void
logCustomInteraction(interactionLabel)
Signature
public static void logCustomInteraction(Object interactionLabel)
Parameters
-
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 logCustomInteraction method.
Return Value
Type: Void