Comments (1)
The library itself does not detect the device, this is done on the Google Analytics backend.
The GA server when they receive a request deduce the device from the user-agent string.
The first thing you can try is to send the data with POST
see Transport / Using POST
If that still does not correct the problem, you can override the user-agent param
with User Agent Override
In the library you have 2 ways to do that
with the configuration
var config:Configuration = new Configuration();
config.forcePOST = true;
config.overrideUserAgent = "(your custom user-agent here)";
var tracker:WebTracker = new WebTracker( "UA-12345-67", config );
with the tracker itself
var tracker:WebTracker = new WebTracker( "UA-12345-67", config );
tracker.set( Tracker.USER_AGENT_OVERRIDE, "(your custom user-agent here)" );
you can see a small example and some notes here
generateCLIUserAgent.as
in particular this
Note that Google has libraries to identify real user agents.
Hand crafting your own agent could break at any time.a wrong user-agent could be the reason of a hit request not being
registered by the Google Analytics Servers.
Sniffing / detecting user-agent to extrapolate the OS / device / etc. is a slippery slope
Google Analytics do that on the backend, from the library we have no control over it
even if you copy/paste a real user-agent you took from a device
but somehow GABE does not recognize it, not only it will not change the device / OS / etc.
but it will also ignore the request, eg. your tracking will not appears in the results.
If I was really forced to override the user-agent, I would try to do it in few steps
- detect the device
see for ex Detecting and limiting Apple iOS devices - have a map of OS/Device to real user-agent strings
- send those UA
really test hard with the GA backed that those UA are valid and accepted
from as3-universal-analytics.
Related Issues (20)
- Why your direct messages will be ignored on twitter / facebook / google+ / email / etc.
- I can't get it working HOT 2
- Bypassing the events throttling HOT 6
- How to provide credit HOT 3
- Campaign tracking on Android/iOS HOT 5
- code review XML
- Google Analytics reporting different number of views than NewGrounds HOT 4
- update generateAIRAppInfo
- Flow player Flash - Would it be possible to integrate HOT 4
- Unable to track - Error #2035 HOT 1
- How to Track two parallel screens HOT 4
- move questions to a wiki page FAQ
- how to make simple tracker ?
- error when trying to set sender type
- How to track SWF in HTML with Flash Player plugin using this library? Please give me some directions. HOT 4
- as3-universal-analytics implementation issue! HOT 4
- example code HOT 4
- Is it possible to detect User Gender/Age/Location? HOT 1
- IOS Black Screen: Launch Failed HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from as3-universal-analytics.