This method logs custom events in the Hurree platform, which are then used to produce analytics.
Returns true if the log is successfully added, and false in case of failure.
- Once application events are logged, marketers can view these compiled analytics from the Insights screen.
- For example, marketers can view, compare, download or print Campaign Performance statistics for individual campaigns, by App and by App Group.
boolean setCustomLogWithEventName(String log, String eventName, String eventType)
To add the method
- Open your project.
- Open app > src > main > java > package name > MainActivity.
- Add the method code:
These are the arguments that define the method.
|log||String||Mandatory||The name of the screen.|
|eventName||String||Mandatory||The name of the event message the business wants on the server.|
|eventType||String||Mandatory||For now, there are two types of events categorised for withEventType i.e.|
Analytics.getInstance(this).setCustomLogWithEventName( "MainActivity", "Clicked", "Image Selected" );