dmurph / jgoogleanalyticstracker Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/jgoogleanalyticstracker
License: MIT License
Automatically exported from code.google.com/p/jgoogleanalyticstracker
License: MIT License
Hi,
not sure you are aware, but as I experienced some issues with the user ID in your library and was looking for an alternative, I found that Google now has an open protocol for Analytics:
https://developers.google.com/analytics/devguides/collection/protocol/v1/
It is very easy and works out of the box just with a simple HTTP Post.
Just FYI for anybody else looking for an alternative.
It would be nice to have support for custom variables when tracking the
analytics.
custom variables are documented here:
http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.ht
ml
thanks for your nice work.
Original issue reported on code.google.com by ruben01
on 16 May 2011 at 10:18
Nature of the problem?
Although there are metrics of "Average Time" for page views, I see no
way to record a response time for a Java application.
What is the desired output? What do you see instead?
I would like to know how to record information that would tell me
the kinds of response times users are getting, and the amount of
time processes are taking (if they are asynchronous).
What version of the product are you using? On what operating system?
Using Java 1.6 on Linux. JGoogleAnalytics_0.4.jar
Please provide any additional information below.
I thought of using a custom URL builder, but realized that rather than
an x=y, the __utmv seems to record only tags, not name/value pairs.
Otherwise, I found the process very easy to use with lots of valuable
information. I use it for other projects as well.
Thanks,
Original issue reported on code.google.com by [email protected]
on 5 Jun 2012 at 5:29
The google analytics for android sdk sends information about the phone to the
google analytics service.
AnalyticsConfigData should have a field for the user agent and then that field
could be generated according to the platform.
Currently on android the user agent is generated as:
String.format("%s/%s (Linux; U; Android %s; %s-%s; %s; Build/%s)", new Object[]
{ userAgentProduct, userAgentVersion, Build.VERSION.RELEASE,
(locale.getLanguage() != null) ? locale.getLanguage().toLowerCase() : "en",
(locale.getCountry() != null) ? locale.getCountry().toLowerCase() : "",
Build.MODEL, Build.ID });
using the information from the android api.
Original issue reported on code.google.com by ruben01
on 31 May 2011 at 1:47
Could the method "trackevent" uses custom variables?
example:
tracker.trackEvent(setCustomVar)
Thanks in advance for the answer.
Alessio
Original issue reported on code.google.com by [email protected]
on 24 Nov 2011 at 10:59
The current trunk with VisitorData is not on Maven. Would be nice to access it
via maven.
Original issue reported on code.google.com by [email protected]
on 17 Feb 2012 at 8:57
there is an escaping error when building the utmcc parameter
Original issue reported on code.google.com by ruben01
on 8 Jun 2011 at 9:40
Attachments:
What steps will reproduce the problem?
1. Put JGoogleAnalyticsTracker-1.2.1-SNAPSHOT.jar, slf4j-api-1.6.6.jar,
slf4j-simple-1.6.6.jar into Libraries of Project
2. Run Project to execute
3. Report SLF4J error: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
( Same result with
JGoogleAnalyticsTracker-1.2.1-SNAPSHOT-jar-with-dependencies.jar only )
What is the expected output? What do you see instead?
Is there any way to fix this?
http://www.slf4j.org/codes.html#StaticLoggerBinder said should solve this with
slf4j-simple-1.6.6.jar, but I've done it.
What version of the product are you using? On what operating system?
JGoogleAnalyticsTracker-1.2.1, WinXP, Eclipse
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Aug 2012 at 4:30
Hi,
could you please release the pom as 1.2.1
without the SNAPSHOT
as it is stable for few years and used? Thanks
What steps will reproduce the problem?
1. track event
2.
3.
What is the expected output? What do you see instead?
URI parsing exception
What version of the product are you using? On what operating system?
downloaded latest from Download section
Please provide any additional information below.
replaced this "%7utmcmd%3D" to "%7Cutmcmd%3D" and it worked
Original issue reported on code.google.com by [email protected]
on 27 Oct 2012 at 10:55
There should be a way to configure the analytics data for the android phone
using the android data.
I have an initial version on this project
https://github.com/gemserk/jgoogleanalyticstracker-platform
the project uses the jgoogleanalyticstracker library as a dependency and
provides a way to configure the analytics tracker from android and desktop.
for now I can configure:
* encoding
* locale
* screen width and height
Original issue reported on code.google.com by ruben01
on 31 May 2011 at 12:32
is it working with ga.js? or even with analytics.js?
Original issue reported on code.google.com by [email protected]
on 6 Nov 2014 at 8:22
Hi,
I've a problem with trackevent() method. I implemented the code for the
tracking of events in the correct way. I say correct way because events in the
content section are updated. But I noticed that not all events that I send are
tracked.
Thanks in advance for the answer.
Alessio
Original issue reported on code.google.com by [email protected]
on 25 Nov 2011 at 1:56
I am making games that run on the desktop as well as on android.
This library fails to work on android because when loading the
com.dmurph.tracking.AnalyticsConfigData class and running validation on it, it
finds the calls to awt that are not present on android, so it fails to load the
class.
I think splitting this class so the populateFromSystem method is in another
class that wouldn't be loaded when using it from android would allow this
library to be used on android.
I am not using the official google analytics for android library because I want
my code to be common between desktop and android, and the android library won't
work on the desktop.
Original issue reported on code.google.com by ruben01
on 24 May 2011 at 3:39
The method to start the background thread is private, so it can't be explicitly
started after it's been stopped.
Workaround: call setMode(DispatchMode.SINGLE_THREAD), which automatically
starts the dispatch thread if needed.
Original issue reported on code.google.com by [email protected]
on 11 Jan 2011 at 4:24
Android analytics supports the measure of unique visitors, from looking at the
official google analytics for android SDK in order to use that from the
jgoogleanalyticstracker we need to do some stuff:
* be able to maintain a visitorId throughout all of the visits from the same visitor
* keep track of some timestamps
right now the code does
&utmcc=__utma%3D"+cookie1+"."+cookie2+"."+now+"."+now+"."+now+"."+"13
the android code does
StringBuilder cookieString = new StringBuilder();
cookieString.append("__utma=");
cookieString.append(FAKE_DOMAIN_HASH).append(".");
cookieString.append(event.userId).append(".");
cookieString.append(event.timestampFirst).append(".");
cookieString.append(event.timestampPrevious).append(".");
cookieString.append(event.timestampCurrent).append(".");
cookieString.append(event.visits);
FAKE_DOMAIN_HASH is just a constant set to 999 in the sdk, userId is the
persisted visitorId, the other timestamps track the time of first visit with
this visitorId, the time of the last visit, and the current time, and then it
sends how many times we started a visit with this visitorId
I think that we should add all this parameters as part of the
AnalyticsConfigData and then provide simple implementations of how to store
them depending on platform, like on desktop using java.util.prefs.Preferences
and on android using SharedPreferences
Original issue reported on code.google.com by ruben01
on 28 May 2011 at 8:59
couldnt find support for it...
Original issue reported on code.google.com by [email protected]
on 16 Oct 2012 at 7:08
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.