Our documentation is changing, please click here to enjoy it!

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Where 1000 is the eventId.

Custom Events

It is possible to build custom events and track them via the following method : Accengage.TrackCustomEvent(long type, dictionary<string, object> parameters);

CustomEvent type is supposed to be a number strictly higher than 1000 (long-typed).

CustomEvent parameters are designed to be a dictionary composed of key/value couples.

Keys are strings regardless of whether you are on iOS or Android

On the other hand, values type change depending on whether you are on iOS or Android platform.

Deck of Cards
idPlatform
Card
labelAndroid

In Android we are expecting to pass value in the following types :

  • Boolean
  • Int32
  • Int64
  • float
  • Double
  • Java.Util.Date
  • String

If you try to pass other kind of data, it will be treated as a String

Code Block
themeDJango
languagec#
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters["keyBoolean"] = true;
parameters["keyInteger"] = 23;
parameters["keyDouble"] = 2.0;
parameters["keyDate"] = new Java.Util.Date();
parameters["keyString"] = "Test String";
Accengage.TrackCustomEvent(1001, parameters);
Card
labeliOS

In iOS we are expecting to pass value in the following types from the Foundation Framework :

  • NSDate
  • NSNumber
  • NSString
  • bool

If you try to pass other kind of data, it will be ignored.

Code Block
themeDJango
languagec#
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.add(“keyNSString”"keyNSString", new NSString(“foo"foo bar”bar"));
parameters.add(“keyNSNumber”"keyNSNumber", new NSNumber(2));
parameters.add(“keyBool”"keyBool", true);
Accengage.TrackCustomEvent(1001, parameters);



Analytics

...