Created
April 21, 2015 07:57
-
-
Save javier-tarazaga/0c141ac7587afff00965 to your computer and use it in GitHub Desktop.
Adobe Successfully added to favourites
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Track the action of a successful added to favourites user action. | |
* | |
* @param contentId - The content id of the item just added to favourites | |
*/ | |
public void trackAddedToFavourites(String contentId) { | |
Preconditions.checkNotNull(contentId); | |
HashMap<String, Object> contextData = new HashMap<>(); | |
contextData.put("video.id", contentId); | |
contextData.put("action.event", "favourites"); | |
Analytics.trackAction("Add to favorites", contextData); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment