snowplow / snowplow-actionscript3-tracker

Snowplow event tracker for ActionScript 3.0. Add analytics to your Flash Player 9+, Flash Lite 4 and AIR games, apps and widgets
http://snowplowanalytics.com
4 stars 1 forks source link

Add auto-detection of the collector URI protocol #25

Open fram03 opened 9 years ago

fram03 commented 9 years ago

With Emitter constructor we can choose HTTP method to use, but what about forcing https? Js library offers "forceSecureTracker" configuration field. Is there something for as3 library?

alexanderdean commented 9 years ago

Nice idea! Added to milestone

nakulgan commented 7 years ago

@alexanderdean This is already possible. It is however undocumented in the wiki, Emitter signature is
Emitter(uri:String, httpMethod:String = URLRequestMethod.GET, protocol:String = "http")

We can chose to provide a forceSecureTracker on the Emitter and make it public or expose it through the tracker.

alexanderdean commented 7 years ago

Thanks for diving into this @nakulgan -

A simple interpretation of that argument would suggest that there is only currently forcing, and there is no auto-detection of host page protocol available currently - but no idea if that's actually true...

nakulgan commented 7 years ago

That is correct, protocol auto-detection is not supported. It makes more sense to add auto-detection feature along with forcing.

alexanderdean commented 7 years ago

Thanks @nakulgan - my recommendation is that we:

This diverges the AS Tracker from the JS Tracker, but it's closer to the mobile trackers and it's simpler to explain to people.

Thoughts @yalisassoon @jbeemster ?

jbeemster commented 7 years ago

All sounds good to me!

nakulgan commented 7 years ago

Sounds good. Thanks @alexanderdean @jbeemster

alexanderdean commented 7 years ago

Renamed title, please update the commit...