Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drmoriarty/godot-firebase-analytics
Firebase Analytics plugin for Godot engine
https://github.com/drmoriarty/godot-firebase-analytics
firebase firebase-analytics godot godot-addon godot-engine godot-module godot-plugin godot3 godotengine nativelib
Last synced: 4 days ago
JSON representation
Firebase Analytics plugin for Godot engine
- Host: GitHub
- URL: https://github.com/drmoriarty/godot-firebase-analytics
- Owner: DrMoriarty
- Created: 2020-03-04T18:52:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T06:02:26.000Z (over 3 years ago)
- Last Synced: 2024-04-24T09:26:48.988Z (7 months ago)
- Topics: firebase, firebase-analytics, godot, godot-addon, godot-engine, godot-module, godot-plugin, godot3, godotengine, nativelib
- Language: Python
- Homepage:
- Size: 76.2 KB
- Stars: 17
- Watchers: 5
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Firebase Analytics plugin for godot engine
Use [NativeLib Addon](https://github.com/DrMoriarty/nativelib) or [NativeLib-CLI](https://github.com/DrMoriarty/nativelib-cli) for installation.
It supports Android and iOS.
Don't forget to enable Android and/or iOS platform in NativeLib before installing this plugin.## For iOS
Ensure that plugin `NativeLib-Export` installed and enabled
Add `GoogleService-Info.plist` in `addons/nativelib-export/iOS` (you could download it from the firebase console where you manage platforms of your project)
## For Android
You should put `google-services.json` into `android/build` folder.
The `google-services.json` you could download from your firebase console where you manage platforms of your project.
# Usage
The plugin's script will be automatically added to your autoloading list. So you will get global object `fba` with methods described below.
# API
## screen(name: String, screen_class: String)
Inform that user open this screen.
## setUserId(id: String)
Set custom user id
## logEvent(event: String, params: Dictionary = {})
Log specific event in you application. Params is optional.
## userProperties(props: Dictionary)
Set user properties. Firebase will store the last value for every property.
## start_checkout(item_id: String, item_name: String, item_category: String, price: float, currency: String = 'USD')
Inform that user starts purchasing in your app.
## revenue(price: float, quantity: int, product: String, currency: String = 'USD', signature: String = '', receipt: String = '')
Inform that user finished purchasing. Optionally you could provide signature and receipt for purchase verification.