{"action":"opened","issue":{"url":"https://api.github.com/repos/danwilson/google-analytics-plugin/issues/543","repository_url":"https://api.github.com/repos/danwilson/google-analytics-plugin","labels_url":"https://api.github.com/repos/danwilson/google-analytics-plugin/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/danwilson/google-analytics-plugin/issues/543/comments","events_url":"https://api.github.com/repos/danwilson/google-analytics-plugin/issues/543/events","html_url":"https://github.com/danwilson/google-analytics-plugin/issues/543","id":369810418,"node_id":"MDU6SXNzdWUzNjk4MTA0MTg=","number":543,"title":"Firefox blocking Google Analytics requests","user":{"login":"ThorvaldAagaard","id":10560652,"node_id":"MDQ6VXNlcjEwNTYwNjUy","avatar_url":"https://avatars0.githubusercontent.com/u/10560652?v=4","gravatar_id":"","url":"https://api.github.com/users/ThorvaldAagaard","html_url":"https://github.com/ThorvaldAagaard","followers_url":"https://api.github.com/users/ThorvaldAagaard/followers","following_url":"https://api.github.com/users/ThorvaldAagaard/following{/other_user}","gists_url":"https://api.github.com/users/ThorvaldAagaard/gists{/gist_id}","starred_url":"https://api.github.com/users/ThorvaldAagaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThorvaldAagaard/subscriptions","organizations_url":"https://api.github.com/users/ThorvaldAagaard/orgs","repos_url":"https://api.github.com/users/ThorvaldAagaard/repos","events_url":"https://api.github.com/users/ThorvaldAagaard/events{/privacy}","received_events_url":"https://api.github.com/users/ThorvaldAagaard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-13T15:04:54Z","updated_at":"2018-10-13T15:04:54Z","closed_at":null,"author_association":"NONE","body":"I the console I can see the following on a firefox browser:\r\n```\r\nERROR Error: \"Uncaught (in promise): Error: send timeout\r\nsend/</timeout<@https://<website>/plugins/cordova-plugin-google-analytics/browser/UniversalAnalyticsProxy.js:184:13\r\n```\r\n\r\nThis is caused by the browser making tracking protection\r\n\r\nhttps://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Privacy/Tracking_Protection?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default\r\n\r\nIt looks like the recommended way is to check if ga has been loaded using code like this\r\n\r\n```\r\nvar trackOutboundLink = function(url) {\r\n    // check if the GA object exists and that it has initialized\r\n    if(window.ga && ga.loaded) { {\r\n        // if yes, rely on GA to follow link\r\n        ga('send', 'event', 'outbound', 'click', url, {\r\n            'transport': 'beacon',\r\n            'hitCallback': function(){document.location = url;}\r\n        });\r\n    } else {\r\n        // if not, follow link ourselves\r\n        document.location = url;\r\n    }\r\n}\r\n```\r\n\r\nIs it possible to included this check in the plugin?\r\n"}}
{"actor":{"display_login":"ThorvaldAagaard"}}