sempaigames / haxe-ga Goto Github PK
View Code? Open in Web Editor NEWGoogleAnalytics Client API port to Haxe
License: Other
GoogleAnalytics Client API port to Haxe
License: Other
Thanks for creating this project -- it will definitely help me in adding simple analytics for my game ๐
However, I had some trouble finding out if it actually worked. I had set up an "Mobile App" google analytics account (I need to tracking from native iOS/Android as well as Web) and nothing was reported. Changing the account type to "Website" made it work beautifully.
The requirement for using the analytics ID of an "Website"-GA account should be emphasized in the readme to help others avoid my (silly?) mistake ๐
haxe-ga 0.51 is not working on Android with the latest openfl / lime
openfl [3.1.4]
lime [2.5.0]
I'm running windows and when i run the command:
haxelib install haxe-ga
I get the error message:
Unsupported flags 2
A quick google reveals this is caused by issues when zipping up the project.
Link
I'm wondering if the custom dimensions are supported. Seems like it's not. Maybe custom Variables can do the trick but it's limited to 5 and I need 9...
Any advice?
The issue seems to be that lime.app.Application.config
was removed, but I believe lime.app.Application.meta
was added with some of the same fields.
The change from 0.4.6 to 0.4.7 broke a project I'm working on, but only with the flash target. The project uses OpenFL and everything is updated.
I had a look, and the problem seems to be on line 166 of "googleAnalytics/internals/request/Request.hx":
urlRequest.requestHeaders.push(new flash.net.URLRequestHeader('User-Agent', userAgent));
Removing just this line fixes the problem for me, but obviously changes functionality. I had a look and I'm not sure why there is a problem with that line. Wrapping the line in a try-catch statement doesn't seem to catch anything (with "catch (e:Dynamic)").
Hello, great port, thank you!
I have small framework that I'm using for both haxe and as3 projects. With haxe projects everything works great, but it crash when I compile it swc and importing in as3 project
This is minimal example project:
https://dl.dropboxusercontent.com/u/17378315/haxe/haxe-ga-swc.zip
DateTime.hx line 34: Error #1006: now is not a function.
Hi!
If I turn on useSSL, ThreadedSocketRequest return status 400 here
https://github.com/fbricker/haxe-ga/blob/master/src/googleAnalytics/ThreadedSocketRequest.hx#L34
// trace(s.input.readLine());
I think you need check this answer and trace this error or/and turn off ssl
I'm trying to integrate this library into a game I'm working on and it's all fine and dandy on Flash and native Windows builds (haven't tested OS X or iOS yet), but on Android I get this exception on startup:
E/HXCPP (17136): Called from *::closure extension/locale/Locale.hx line 7
E/HXCPP (17136): Called from openfl._legacy.utils.JNI::createStaticMethod openfl/_legacy/utils/JNI.hx line 123
E/HXCPP (17136): Called from extern::cffi C:/files/tools/sdks/haxe/haxe/lib/hxcpp/3,2,102/src/hx/Lib.cpp line 159
E/Exception(17136): JNI Exception
I have tried using the provided sample code in a separate project and that does indeed work, both for legacy and "next" builds both with the provided example tracking id and my own.
The issue with my project persists even when I disable everything but the bare skeleton of the app calling (or simply mentioning) your library still causes the exception. Nor does it help removing the entire build directory to get a fresh rebuild.
I'm currently trying to figure out exactly why this is happening, but figured I'd make this issue here in case you have any bright ideas.
there is no support for these info in openfl 3 anymore, actually we can discuss and check major version of openfl and make more tricky checks for preprocessor...
I've also created issue on openfl to clarify the status and plans on implementation of these fields. openfl/openfl#719
Or the simplest solution is just drop that functionality from haxe-ga, and provide some customPackage setter outside of main module.
Hi !
There is no ga.Stats destructor and we feel it should available since many usage patterns with android activities can mess with this.
We believe Variables should be null set, connection closed ( flushed ) and threads stopped.
Can you implement it ?
Thanks !
W/GAv4 (30377): AnalyticsService not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions.
if(ld.data!=null && ld.data.gaVisitor!=null){
visitor=ld.data.gaVisitor;//error
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.