Correct me if I’m wrong, but shouldn’t the new release be available @ http://d1fc8wv8zag5ca.cloudfront.net/2.11.0/sp.js?
Our strategy on distribution has changed recently and assets are deployed to GitHub instead of Cloudfront.
Related issue is here and release notes are here where you can find
sp.js file under
@oguzhanunlu thanks for the explanation. I guess this is not recommended to use directly on client-side due to github response time but rather self-host it or maybe there’s a public CDN that could host snowplow tracker?
The recommendation is to host it on a CDN that shares a domain with your website.
@Colm whats the advantage of having it on same domain? As its loaded on client side it should matter I guess just the fetch speed.
You may get a speed advantage, but also some adblockers (depending on user settings) will prevent the asset from loading if it appears to come from a third party domain.
If you’re using the tracker as a first party asset, hosting it on the same domain will ensure it’s treated as such.
@Colm ah I see, thanks for the tip!