监控用户对广告的点击活动(adsense 或其他网络)

发布于 2024-12-11 16:01:32 字数 113 浏览 2 评论 0原文

我正在考虑跟踪我网站上的广告(包括 adsense 和其他网络)上的所有用户点击,

您认为这可能吗?也许可以添加一个带有 jquery 的事件侦听器,在用户打开广告商页面之前发送 ajax 调用?

I am thinking to track all user clicks on the ads I have on my website (including adsense and other network)

Do you think this would be possibile maybe adding an event listener with jquery that sends an ajax call before the user can open the advertiser page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

舂唻埖巳落 2024-12-18 16:01:32

假设您将所有广告都封装在带有 ad 类的容器中,您可以这样做:

$('body').delegate('.ad', 'click', function(){
  //YOUR AJAX CALL HERE
});

我不太确定这是否适用于 Flash 内容,但您可以尝试一下。

Assuming you have all ads wrapped in a container with class ad you could do:

$('body').delegate('.ad', 'click', function(){
  //YOUR AJAX CALL HERE
});

I'm not quite sure, if this works with flash content, but you could give it a try.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文