Jesse Luoto
Jesse Luoto
Hmm. Depending on if the iframe's content security policy you might be able to inject stuff to it by using something like: ```js var myIframe = document.getElementById('my-iframe') // or some...
Hmm. This tracks down to the very first commit: https://github.com/jehna/ga-lite/blob/719d3c7171395fa2ee0aec5468625d1ecd07f7ca/src/ga-lite.js#L21-L22 Back then ga-lite had functionality of sending the pageviews on `window.onunload`, and since Internet Explorer doesn't support `navigator.sendBeacon`, there was...
Source and further explanation for the synchronous flag: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests#Adapting_Sync_XHR_usecases_to_the_Beacon_API
According to MDN: > Safari Mobile's Private Browsing mode also prevents writing to `localStorage` entirely. > ~ https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage#Browser_compatibility So we should be able to skip `localStorage` and degrade backwards without...
This probably can be quick fixed if we add a try-catch to `get-user-id.js` and fall back to something that does not require a persistence (like a normal variable).
Though denying cookies is a strong indicator that the user does not want to be tracked; I'm thinking if we should disable the ga-lite tracking then altogether?
Hey, no updates yet. If you'd like to help (or you know someone that could take this on) I'd be happy to help get you started with the codebase :)
Allowing caching an analytics response does not make much sense, ad that request should always be guaranteed to hit origin. Interestingly the official google analytics seems to somehow get around...
Sounds good, this could be a part of the README. No, ga-lite does not currently report page load times. Opened issue #46 for that.
The reason is only that the loading script is subject to small changes when #46 is implemented, so I haven't added it in yet :smile: The script from @p0358 translates...