4 ms·
We actually ask to insert a snippet after GA / Segment initialization code. The algo is a follows: a) check if ga / analytics object is present b) add intercep
by vklmn 6y ago
We actually ask to insert a snippet after GA / Segment initialization code.
The algo is a follows: a) check if ga / analytics object is present b) add interceptor c) if the code was fully loaded (not a stup), send "fake" pageview event (which has been already sent), intercept it and send to EN backend only (not the original backend).
Also, we received a pull request that won't require EN code be inserted after GA/Segment. It tries to get window.ga/analytics object. If it doesn't exist, try the same thing in 1 second via setTimeout. We most likely with merge it to master soon
- pachico 6y agoWhat I gets me wondering is that by having your own hosted solution you bypass adblockers but this implementation requires GA to be loaded, which is what adblockers block in the first place. Am I missing anything?
- pwys 6y agoWhile we do have a hook to intercept GA data, it is actually optional! You can use the self hosted JS tracker that we include with EventNative and serve it from your domain.