This is an example project for creating an Analytics Provider Plugin for the Applicaster Zapp Platform. You can use this example project as a reference to build and test your own Analytics Provider Plugin.
Bintray credentials enable the build to pull Applicaster SDK dependencies from Maven.
- Add
MAVEN_USERNAMEandMAVEN_PASSWORDentries to your environment variables. - Contact an Applicaster developer to obtain credentials for the above entries.
Contains mock implementation of how the Zapp Platform log events to the Analytics providers that are registered in the plugin_configurations.json.
This portion of the code facilitates testing and should only be modified to change the events you need to log to your analytics provider.
This module contains a sample analytics using Google Analytics as the provider in the following class:
- TestAnalyticsAgent.java:
- Extends
BaseAnalyticsAgent. - Contains the initialization of the plugin and the plugin configurations.
- Contains implementation of logging events using Google Analytics Tracker.
- Extends
- Create a new module that will replace the
TestAnalyticsPlugin-Androidmodule. It should contain a class which extendsBaseAnalyticsAgent. You can useTestAnalyticsAgent.javaas a template. - Modify the
plugin_configurations.jsonto adapt to your Analytics provider. Add any necessary configurations to the manifest. More info about the manifest can be found here - Modify the app module's
MainActivityto pass the required events. - Make sure the Analytics provider is getting all the desired events.
If you have any question please contact Juan Hernandez.