You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking about writing tests for bower's tracking. It would be nice to know if tracking attempt was successful or not. Perhaps we don't need to return the entire server response, just success / fail.
After looking at it closer, this may be harder to implement due to Insight forking multiple tracking attempts into child processes. Do you know why this is the case instead of using an async control flow? My understanding is that fork spawns entirely new V8 instances, and is meant to be used for heavy-lifting tasks.
Do you know why this is the case instead of using an async control flow?
It's like that so it can be fault tolerant and have no impact on the consumer. If you send something and then immediately quit the process it still sends successfully as the sending happens in an independent child process.
Insight should pass the response from tracking server, just in case the client wants to consume this info. Currently tracking server response is ignored: https://github.com/yeoman/insight/blob/master/lib/push.js#L23
There should also be tests that validate tracking server response.
GA tracking server response headers:
Response body has a 1x1 pixel image.
The text was updated successfully, but these errors were encountered: