Hi,
I am trying to develop a plugin for Gameanalytics.com
I am using :
https://github.com/orange-games/GA-JavaScript-SDK
The problem is that the plugin I developed works perfect in preview mode but not on the exported version.
The exported version works on itch.io website (still gives an error about crypto.js- a file the is placed on dependency) but doesn't on bitballoon.com
The problem can be at the fact that the plugin needs 7 files listed on dependency?
"dependency": "cryptojs.d.ts;enc-base64-min.js;GaJavaScriptSdk.d.ts;GaJavaScriptSdk.js;GaJavaScriptSdk.js.map;GaJavaScriptSdk.min.js;hmac-sha256.js;"
[/code:2qk7a38n]
on runtime.js:
[code:2qk7a38n]//init
Acts.prototype.init= function(gameKey, secretKey,build)
{
var user = new GA.User();
//Create an instance
var gaan = GA.getInstance();
gaan.init(gameKey, secretKey, build, user)
.addEvent(new GA.Events.User())
.addEvent(new GA.Events.Design('Game:Start'));
};
//end init[/code:2qk7a38n]
Can anyone with more experience in developing plugins can help me?
Thanks