cordova-plugin-tag-manager
cordova-plugin-tag-manager copied to clipboard
(GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1
I have this error in my log (both in simulator and on a real ios device):
VERBOSE: GoogleAnalytics 3.13 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect VERBOSE: GoogleAnalytics 3.13 -[GAIBatchingDispatcher dispatchWithCompletionHandler:] (GAIBatchingDispatcher.m:632): Sending hit(s) GET: https://ssl.google-analytics.com/collect?... INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1 INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted INFO: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:237): 1 hit(s) sent
Reported without any answer here: http://stackoverflow.com/questions/30363622/google-analytics-http-status-1-when-sending-hits-by-request-get-https-ssl-g
Any idea?
Hi - Am trying it on the iOS version of my cordova app. Am receiving a similar error too. Did you have any luck in fixing it? Can you pls help me?
I see issues in parsing the json file. Here are my logs. Am struck with this.
GoogleTagManager warning: Cannot find binary resource file 'GTM-XXXXXX'.
GoogleTagManager warning: Cannot find resource file 'GTM-XXXXXX.plist'
GoogleTagManager verbose: loading default container from GTM-XXXXXX.json
I downloaded the json file from GTM account - Admin, export for the live version. I dont see an option for download from Actions tab(as listed in some of the posts) and when I checked with my GTM anchor, she informed that, it is no longer available with Version 2. It was an option in the old gtm product. Version 2 only has export.
But with the json, I get error on parsing it.
GoogleTagManager warning: Error reading resource from json file: Type __NSCFArray is not supported
GoogleTagManager error: No default container found; creating an empty container.
GoogleTagManager verbose: GoogleAnalytics 3.13 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect
GoogleTagManager info: GoogleAnalytics 3.13 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1
I saw one of the solutions to bump up library version and if I try to bump up version of libGoogleAnalyticsServices.a to 3.15, then I get compilation errors.
Thanks. Pls let me know if you need more information.
@iosnewbie2016 I'm not sure your problem is related to OPs problem. If you do not have the option to download the binary files (GTM-XXX filename without extension) it is possible that you created a web account/container in TGM instead of a mobile-ios or mobile-android account/container.