1. Home
  2. Integrations
  3. Android Unity Events Setup Guide
  4. Custom Event Setup – Android Unity

Custom Event Setup – Android Unity

We recommend using our pre-defined events but in case you wish to define a custom event to track a specific behavior.

You will need to call the below method to track custom events in your Application.

Java

public static void TrackCustomEvent
(string eventName, Dictionary<string, object> extraParamsDic);

 

  • Mandatory parameters (Custom Event):    
    • Event Name – Event name going to be tracked
  • Optional parameters (Custom Event):   
    • Key – Key name for tracked custom event
    • Value – Value of key for tracked custom event

Sample Code

Dictionary<string, object> extrasParams = new Dictionary<string, object> ();
       extrasParams.Add (“JobId”, 10234);
       extrasParams.Add (“JobType”, “Technical”);
       extrasParams.Add (“JobProfile”, “Manager”);
       MTractionTracker.TrackCustomEvent (“Job Search”, extrasParams)

Was this article helpful to you? Yes No

How can we help?