Created
February 21, 2015 02:13
-
-
Save pablete/963dab48856ebdec85e3 to your computer and use it in GitHub Desktop.
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
public void trackGoal(String goalName, String trackingId, Map<String,String> analyticsArguments) { | |
final Options options = new Options().setAnonymousId(trackingId); | |
final Props p = new Properties("properties"); | |
for(KeyVal e : analyticsArguments.getKeyVal()) { | |
p.put(e.key(), e.val()) | |
} | |
analyticsClient.track("anonymous", goalName, props, options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment