matomo-org / matomo-sdk-ios

Matomo iOS, tvOS and macOS SDK: a Matomo tracker written in Swift
MIT License
390 stars 164 forks source link

sendView intermittent #66

Closed perlguy99 closed 8 years ago

perlguy99 commented 9 years ago

If there is a better place for me to post this question, please let me know.

I've been experimenting with this code for a few days now and I am running into instances where I am sending a "sendView" to the piwik server, yet the piwik server is not registering it for some reason...

It is very possible the I just don't fully understand how everything works yet - but I wanted to see if anyone else has seen this behavior.

Below is my AFNetworking debug output.

2015-02-06 09:11:30.933 GEOINT Apps[1402:704537]     -[PiwikTracker initWithSiteID:dispatcher:] => [Piwik] Tracker created with siteID 9

2015-02-06 09:11:31.352 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidStart:] => POST 'http://gasmetrics2.webserver.com/piwik/piwik.php/': {
    "Accept-Language" = "en;q=1";
    "Content-Type" = "application/json; charset=utf-8";
    "User-Agent" = "GEOINT Apps/F89 (iPad; iOS 8.1.3; Scale/2.00)";
} {"requests":["?action_name=screen\/Application Launched - AppDelegate&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=10724&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=40382&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=16&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:16&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=22647&_id=65615cc13f7b9c93&new_visit=1&s=15&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:15&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=34568&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=43&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:43&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=1052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=39&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:39&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35047&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=21&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21349&_id=65615cc13f7b9c93&new_visit=1&s=21&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=3104&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=54&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:54&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=48480&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=30&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21083&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=12&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:12&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=30540&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=17&rec=1&m=56&_idts=1423151025&cdt=2015-02-06 14:56:17&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=13870&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=53&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:53&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=36835&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=51&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:51&res=1536x2048"]}

2015-02-06 09:11:31.488 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidFinish:] => 200 'https://gasmetrics2.webserver.com/piwik/piwik.php/' [0.1364 s]: {
    "Content-Length" = 123;
    "Content-Type" = "text/html; charset=UTF-8";
    Date = "Fri, 06 Feb 2015 15:12:13 GMT";
    Server = "Apache/2.2.15 (Red Hat)";
    "Set-Cookie" = "BIGipServerGAS_METRICS2_RRP_pool=3454927626.20480.0000; path=/";
    "X-Cnection" = close;
    "X-Powered-By" = "PHP/5.3.3";
} (null)

2015-02-06 09:11:31.490 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidStart:] => POST 'http://gasmetrics2.webserver.com/piwik/piwik.php/': {
    "Accept-Language" = "en;q=1";
    "Content-Type" = "application/json; charset=utf-8";
    "User-Agent" = "GEOINT Apps/F89 (iPad; iOS 8.1.3; Scale/2.00)";
} {"requests":["?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=26189&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=31&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:31&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=10724&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=40382&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=16&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:16&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=22647&_id=65615cc13f7b9c93&new_visit=1&s=15&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:15&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=34568&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=43&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:43&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=1052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=39&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:39&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35047&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=21&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21349&_id=65615cc13f7b9c93&new_visit=1&s=21&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=3104&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=54&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:54&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=48480&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=30&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21083&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=12&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:12&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=30540&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=17&rec=1&m=56&_idts=1423151025&cdt=2015-02-06 14:56:17&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=13870&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=53&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:53&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=36835&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=51&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:51&res=1536x2048"]}

2015-02-06 09:11:31.508 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidFinish:] => 200 'https://gasmetrics2.webserver.com/piwik/piwik.php/' [0.0175 s]: {
    "Content-Length" = 123;
    "Content-Type" = "text/html; charset=UTF-8";
    Date = "Fri, 06 Feb 2015 15:12:13 GMT";
    Server = "Apache/2.2.15 (Red Hat)";
    "X-Cnection" = close;
    "X-Powered-By" = "PHP/5.3.3";
} (null)

2015-02-06 09:11:33.097 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidStart:] => POST 'http://gasmetrics2.webserver.com/piwik/piwik.php/': {
    "Accept-Language" = "en;q=1";
    "Content-Type" = "application/json; charset=utf-8";
    "User-Agent" = "GEOINT Apps/F89 (iPad; iOS 8.1.3; Scale/2.00)";
} {"requests":["?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=33790&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=33&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:33&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=26189&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=31&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:31&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=10724&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=40382&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=16&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:16&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=22647&_id=65615cc13f7b9c93&new_visit=1&s=15&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:15&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=34568&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=43&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:43&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=1052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=39&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:39&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35047&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=21&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21349&_id=65615cc13f7b9c93&new_visit=1&s=21&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=3104&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=54&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:54&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=48480&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=30&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21083&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=12&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:12&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=30540&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=17&rec=1&m=56&_idts=1423151025&cdt=2015-02-06 14:56:17&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=13870&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=53&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:53&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=36835&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=51&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:51&res=1536x2048"]}

2015-02-06 09:11:33.173 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidFinish:] => 200 'https://gasmetrics2.webserver.com/piwik/piwik.php/' [0.0761 s]: {
    "Content-Length" = 123;
    "Content-Type" = "text/html; charset=UTF-8";
    Date = "Fri, 06 Feb 2015 15:12:15 GMT";
    Server = "Apache/2.2.15 (Red Hat)";
    "X-Cnection" = close;
    "X-Powered-By" = "PHP/5.3.3";
} (null)

2015-02-06 09:11:48.191 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidStart:] => POST 'http://gasmetrics2.webserver.com/piwik/piwik.php/': {
    "Accept-Language" = "en;q=1";
    "Content-Type" = "application/json; charset=utf-8";
    "User-Agent" = "GEOINT Apps/F89 (iPad; iOS 8.1.3; Scale/2.00)";
} {"requests":["?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=33790&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=33&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:33&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=26189&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=31&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:31&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=10724&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=40382&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=16&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:16&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=22647&_id=65615cc13f7b9c93&new_visit=1&s=15&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:15&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=34568&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=43&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:43&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=1052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=39&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:39&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35047&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=21&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21349&_id=65615cc13f7b9c93&new_visit=1&s=21&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=3104&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=54&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:54&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=48480&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=30&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21083&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=12&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:12&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=30540&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=17&rec=1&m=56&_idts=1423151025&cdt=2015-02-06 14:56:17&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=13870&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=53&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:53&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=36835&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=51&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:51&res=1536x2048"]}

2015-02-06 09:11:48.305 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidFinish:] => 200 'https://gasmetrics2.webserver.com/piwik/piwik.php/' [0.1145 s]: {
    "Content-Length" = 123;
    "Content-Type" = "text/html; charset=UTF-8";
    Date = "Fri, 06 Feb 2015 15:12:30 GMT";
    Server = "Apache/2.2.15 (Red Hat)";
    "X-Cnection" = close;
    "X-Powered-By" = "PHP/5.3.3";
} (null)

2015-02-06 09:12:03.323 GEOINT Apps[1402:704537]     -[AFNetworkActivityLogger networkRequestDidStart:] => POST 'http://gasmetrics2.webserver.com/piwik/piwik.php/': {
    "Accept-Language" = "en;q=1";
    "Content-Type" = "application/json; charset=utf-8";
    "User-Agent" = "GEOINT Apps/F89 (iPad; iOS 8.1.3; Scale/2.00)";
} {"requests":["?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=33790&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=33&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:33&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=26189&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=31&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:31&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423235491&h=9&apiv=1&_idvc=48&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=10724&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=11&_idts=1423151025&cdt=2015-02-06 15:11:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=40382&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=16&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:16&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234936&h=9&apiv=1&_idvc=47&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=22647&_id=65615cc13f7b9c93&new_visit=1&s=15&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=2&_idts=1423151025&cdt=2015-02-06 15:02:15&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=34568&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=43&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:43&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=1052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=39&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:39&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35047&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=21&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234761&h=8&apiv=1&_idvc=46&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21349&_id=65615cc13f7b9c93&new_visit=1&s=21&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=59&_idts=1423151025&cdt=2015-02-06 14:59:21&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=3104&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=54&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:54&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=48480&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=30&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/Application Launched - AppDelegate&_viewts=1423234650&h=8&apiv=1&_idvc=45&url=http:\/\/GEOINT Apps\/screen\/Application Launched - AppDelegate&r=21083&_id=65615cc13f7b9c93&new_visit=1&s=30&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&idsite=9&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:30&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=35052&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=12&rec=1&m=57&_idts=1423151025&cdt=2015-02-06 14:57:12&res=1536x2048","?action_name=screen\/iPad Application Launched - Browse&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Browse&r=30540&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=17&rec=1&m=56&_idts=1423151025&cdt=2015-02-06 14:56:17&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=13870&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=53&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:53&res=1536x2048","?action_name=screen\/iPad Application Launched - Auth View&_viewts=1423234551&h=8&apiv=1&_idvc=44&url=http:\/\/GEOINT Apps\/screen\/iPad Application Launched - Auth View&r=36835&_id=65615cc13f7b9c93&idsite=9&_cvar={\"1\":[\"Platform\",\"iPad4,5\"],\"2\":[\"OS version\",\"8.1.3\"],\"3\":[\"App version\",\"F89\"]}&s=51&rec=1&m=55&_idts=1423151025&cdt=2015-02-06 14:55:51&res=1536x2048"]}
perlguy99 commented 9 years ago

I've been using this code a bit more and have noticed some more details about this...

If I have debug on, it appears like things should be working as designed.

However, with debug off, my calls to "sendView" and "sendViews" seem to not reach our Piwik server most of the time.

If I add a call to "dispatch" after EACH "sendView" or "sendViews" method call, then it looks like most/all of the data gets to the Piwik server.

Does anyone have any ideas on how to debug the dispatcher a bit more to see if there actually IS a problem and if so, how to fix it?

Thanks!

mattiaslevin commented 9 years ago

I am just swamped with work. I will take a took in a few days, promise.

mattiaslevin commented 9 years ago

When I look quickly at the logs above the http repose code "200" indicates that the request is reaching the PiwikServer and the server is returning 200.

Then the question is what happens inside the PiwikServer. "200" does not mean much more then that the request is received, not that the parameters are valid.

Do you have the possibility to try the following this: -Create a new Site in the PiwikServer and send events to this one. Some problems as before? I think I recall having had problems and creating a new site gets everything going again. -If possible (and if you have the patience) try installing a local copy of the PiwikServer This will give you more control of troubleshooting. There are ways to look inte what happens in the PiwikServer. -Check the version of your PiwikServer and post here -Maybe there are some characters or encoding that the server does not like (depending on your screen name). Does it happen for the same screen always or is it random?

I will have a look at the dispatcher and give you some code to track/count success and fails to see if the issue is on the client or server.

mattiaslevin commented 9 years ago

(After 5 minutes of thinking).

If you only have one tracking event when sending to the PiwikServer it will be send as a GET request. If you have more then one event they will be send as a bulk request in a POST request.

There was a change in the PiwikServer how the events were encoded in the POST request. I needed to bump the SDK to follow that change.

It would be great if you could provide the SDK version and PiwikServer version.

perlguy99 commented 9 years ago

I'll take a look at things tomorrow and update this thread.

Sent from my iPhone

On Feb 18, 2015, at 16:33, Mattias Levin notifications@github.com wrote:

(After 5 minutes of thinking).

If you only have one tracking event when sending to the PiwikServer it will be send as a GET request. If you have more then one event they will be send as a bulk request in a POST request.

There was a change in the PiwikServer how the events were encoded in the POST request. I needed to bump the SDK to follow that change.

It would be great if you could provide the SDK version and PiwikServer version.

— Reply to this email directly or view it on GitHub.

perlguy99 commented 9 years ago

Using Piwik 2.10.0 SDK - I think it is v3.1.1. I downloaded it on 02/12/15.

Going to try a new site next. Thank you!

perlguy99 commented 9 years ago

Ok. WithOUT the calls to "dispatch" each time, I see that the items are being sent via a POST request.

The result that I get back is:

2015-02-19 08:41:55.604 GEOINT Apps[1068:640792]     -[AFNetworkActivityLogger networkRequestDidFinish:] => 200 'https://gasmetrics2.cticore.com/piwik/piwik.php/' [0.0961 s]: {
    "Access-Control-Allow-Credentials" = true;
    "Access-Control-Allow-Origin" = "*";
    "Content-Length" = 32;
    "Content-Type" = "application/json";
    Date = "Thu, 19 Feb 2015 14:42:10 GMT";
    Server = "Apache/2.2.15 (Red Hat)";
    "X-Cnection" = close;
    "X-Powered-By" = "PHP/5.3.3";
} {
    status = success;
    tracked = 0;
}

However, out of 3 executions of the program, and visiting every page in the application, only 1 page hit was actually registered and show up in the Piwik server.

And, this was on a new Piwik site that I just created for this test.

mattab commented 8 years ago

Hi @perlguy99 Could you upgrade to latest Piwik and try again? If you still have the problem, please open a new issue, and post there the list of request URLs to piwik.php.