TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Pixel Tracking in Node.js

33 点作者 funthree超过 13 年前

4 条评论

latchkey超过 13 年前
I wrote the pixel tracker for a big corporation, which tracks a ton of hits for many top sites.<p>1) Using Math.random() to generate a UUID, is not a UUID. There are plenty of JS uuid generators out there. Please use one. 2) Why are you returning a header with what is being tracked? 3) Please please please use coffeescript.
评论 #3362089 未加载
评论 #3362054 未加载
knowtheory超过 13 年前
Neat, it's cool to see pixel tracking as a middleware component.<p>What i'm not clear on (and i'd love to hear your thoughts about) is why you'd want it as a middleware component vs a daemonized external service such as <a href="http://documentcloud.github.com/pixel-ping/" rel="nofollow">http://documentcloud.github.com/pixel-ping/</a> (and if you care about such things, check out the annotated source: <a href="http://documentcloud.github.com/pixel-ping/docs/pixel-ping.html" rel="nofollow">http://documentcloud.github.com/pixel-ping/docs/pixel-ping.h...</a> )<p>full disclosure: i joined DocumentCloud a few months ago.
评论 #3360899 未加载
voidfiles超过 13 年前
You can do something like this with mixpanel if you don't want to setup a whole server. I wrote about it.<p><a href="http://alexkessinger.net/2010/12/17/doing-a-pixel-ping-without-a-server/" rel="nofollow">http://alexkessinger.net/2010/12/17/doing-a-pixel-ping-witho...</a>
wingerlang超过 13 年前
I've never heard of pixel-tracking before. But Will wont it break if the user caches it? Then It wont be read again and thus not count the view.<p>Or?
评论 #3360853 未加载