Tag events in Cascades

When an interesting event occurs in your Cascades/BlackBerry 10 application, tag it using these instructions.

Adding a tag to a button press where we tag some attributes and a custom dimension might look like this.
Button {
    id: testButton
    text: "Test Button"
    horizontalAlignment: HorizontalAlignment.Center
 
    onClicked: {
        localytics.tagEvent("Button Pressed!", {
                "Level": 6,
                "Mood": "Grumpy"
            }, [ "Trial User" ]);
    }
}