zwetan / as3-universal-analytics

Google Universal Analytics for AS3
Mozilla Public License 2.0
73 stars 11 forks source link

Unable to track - Error #2035 #25

Closed swingingtom closed 8 years ago

swingingtom commented 8 years ago

Im not able to track.

var config:Configuration = new Configuration();
config.enableErrorChecking = true;
m_universalTracker = new WebTracker( UACode, config );
m_universalTracker.pageview( "does/it/work/question-mark" );

uanalytics.swc v0.8 from zip Using SWF in Browser.

I wasnt seeing any network call in the browser console. Then I activated the ErrorChecking.

Error: Error #2035: L'URL est introuvable. URL: http://www.google-analytics.com/collect?v=1&_v=as3uanalytics1&cid=632f2c47-aa7b-49e8-9fef-67dfb3582225&dh=localhost&dp=session%2Finit%2Fruntime%2Fweb%2Flang%2Fund%2Fmanufacturer%2FAdobe%20Windows%2Fos%2FWindows%207&ds=web&t=pageview&tid=UA-999999-3 at libraries.uanalytics.tracker.senders::LoaderHitSender/onIOError()[/Volumes/prototype/libraries/as3-universal-analytics/src/libraries/uanalytics/tracker/senders/LoaderHitSender.as:286]

Even when ForcePOST = true

Error: Error #2035: L'URL est introuvable. URL: http://www.google-analytics.com/collect at libraries.uanalytics.tracker.senders::LoaderHitSender/onIOError()[/Volumes/prototype/libraries/as3-universal-analytics/src/libraries/uanalytics/tracker/senders/LoaderHitSender.as:286]

Do I miss something ?

swingingtom commented 8 years ago

Force ssl solved my issue.

var config:Configuration = new Configuration();
config.forceSSL = true;
config.enableErrorChecking = true;
m_universalTracker = new WebTracker( UACode, config );
m_universalTracker.pageview( "does/it/work/question-mark" );

My guess is that HTML status codes for redirections (3XX) are not recognize as being valid after the redirection.

By the way, you did a nice work. Im pretty happy to use this library. Adios GATracker !