Hacker News new | ask | show | jobs
by yoavm 1969 days ago
Unfortunately, when it comes to analytics and conversion pixels, deferring everything isn't really a serious option because it literally means missing data. Essentially all your metrics would be skewed and your remarketing audiences would be missing potential users. But also from performance it isn't great - I came across this website yesterday that did more or less this, and the problem was that because everything was loaded just after the page was ready, things would get super slow the first few seconds you're trying to interact with it.
1 comments

If someone hasn't stayed long enough to trigger GA, is it really a user? :)

Another option: only delay the scripts the first time user has landed on your page

I think the single script embed is a good path (much better than asking people to change DNS, remove scripts or such). Maybe you can optimize other areas using JS (like images).

Philosophically it's a great question :) I'm not a marketer, but I'm pretty sure that if you'd ask one what they think about losing the ability to do remarketing for all the users who bounced within the first 10 seconds of their visit, they would tell you it's perhaps their most important audience.

We'd definitely be looking to optimizing other areas too, though honestly our approach was more to get rid of as much as client-side JS as possible. There are so many other tools that will help your do your first-party optimizations: images, caching, bundling, but we couldn't find anything that takes care of optimizing your third-party stack while keeping it 100% functional.