Send a special, extended analytics event to your analytics provider.


GML Code Example

analytics_event_ext(string, string_param0, value0, string_parm1, value1, ...)

Argument Description
string A string to send to the provider.
string_param[0 -9] The parameter to send (a string).
value[0 - 9] The value of the parameter (a real number).

Returns: N/A


This function will send the specified text to the analytics provider that you have set up through the Global Game Settings - Analytics Tab. This function can be used to create a custom analytic to track something outside of the scope of the provider being used, and will also accept custom parameter/value pairs, where the parameter is a string and the value a real number. For Google Analytics, you can only add in one extra pair while Flurry will accept up to 7, and MarkedUp does not accept parameters so only the initial string will be shown.


GML Code Example

var num, time;
 num = ini_read_real("Data", "Plays", 0);
 num += 1;
 time = current_time;
 analytics_event_ext(GAME_NAME, "Plays", num, "Time", time);
 ini_write_real("Data", "Plays", num);

The above code will get play information from an ini file as well as the current time and then send those details to the analytics provider.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here