-
Notifications
You must be signed in to change notification settings - Fork 181
Upgrade Google Analytics Classic to Universal #298
Comments
It actually looks pretty easy to do as the code is structured nicely. I think I can do a fix easilty and share it back. How Do I compile just the SWF plugin for analytics? I can't see anything in the readme for the project or in the Flowplayer docs. |
They use the swc libraries of the GA code. Original project was here https://code.google.com/archive/p/gaforflash/ New project |
@danrossi ah - good shout. Is that big thing to do ? I was looking at doing it via the Bridge instead of using Measurement protocol. It sounds like it would be the easiest option and ideal just to update the flash plugin to use universal as you say above. |
Just had a look - and unfortunately flash is not my strong point. |
by quickly looking at the sources it seems the analytics is done trough a plugin I would suggest to create another analytics plugin (maybe? I'm not sure) then you would have to change the logic and api calls in in the main class for example
see interface libraries.uanalytics.tracking.AnalyticsTracker from that it's writing logic for the configuration and other custom settings you may need. |
It seems it needs a complete refactor to use the new library. |
it is a different library implementing a different protocol |
yes I tried to have a go this weekend. so far after about 5hours, ihave got my head round it but am fighting against my lack of knowledge on flash to really progress. i think the ideal method - is just to update the _gaq calls and change them to ga( calls via the Javascript bridge until someone who knows more flash can find time to update. |
Currently the code in Analytics 3.2.9 seems to be using Analytics Classic - which is no longer advocated by Google. It should be updated to Google analytics univesal.
The only place I can see the bridge is here:
https://github.com/flowplayer/flash/blob/1caea54d3e7fa66b6496d556998052507a6d05a4/core/test/analytics.html
Is there any other locations that I haven't looked.?
If so -then I can suggest a good way to implement it that would be backwards compatible with existing legacy versions of Flow player and allow full use of the latest Google Analytics features.
The text was updated successfully, but these errors were encountered: