https://github.com/drmoriarty/godot-tenjin
Tenjin plugin for Godot engine. Free attribution, Ad Revenue LTV, Cost and ad revenue aggregation.
https://github.com/drmoriarty/godot-tenjin
analytics godot godot-addon godot-engine godot-module godot-plugin godotengine nativelib tenjin
Last synced: 4 months ago
JSON representation
Tenjin plugin for Godot engine. Free attribution, Ad Revenue LTV, Cost and ad revenue aggregation.
- Host: GitHub
- URL: https://github.com/drmoriarty/godot-tenjin
- Owner: DrMoriarty
- Created: 2020-04-06T20:20:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T17:00:25.000Z (about 4 years ago)
- Last Synced: 2025-01-10T21:13:05.799Z (5 months ago)
- Topics: analytics, godot, godot-addon, godot-engine, godot-module, godot-plugin, godotengine, nativelib, tenjin
- Language: Java
- Homepage:
- Size: 155 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tenjin plugin for Godot engine. Free attribution, Ad Revenue LTV, Cost and ad revenue aggregation.
## Installation using NativeLib Addon
1. Add [NativeLib Addon](https://github.com/DrMoriarty/nativelib) into your project (search it in Godot's AssetLib).
2. Find `TENJIN` in plugins list and press "Install" button.
3. Set your API key in plugin variables list.
4. Enable **Custom Build** for using in Android.
## Installation using NativeLib-CLI
1. Install [NativeLib-CLI](https://github.com/DrMoriarty/nativelib-cli) in your system.
2. Make `nativelib -i tenjin` in your project directory.
3. Set `Tenjin/ApiKey` in your project settings.
4. Enable **Custom Build** for using in Android.
## Usage
Wrapper on gd-script will be in your autoloading list. Use global name `tenjin` anywhere in your code to use API.
## API
### logEvent(event: String)
Log any custom event in your application.
### logEventWithValue(event: String, value: int)
Log custom event with value which can be summarized in reports.
### logPurchase(sku: String, currency: String, amount: int, price: float)
Log in-app purchase.
### logPurchaseWithSignature(sku: String, currency: String, amount: int, price: float, data: String, signature: String)
Log in-app purchase with receipt verification.