如何将 Google Analytics 事件跟踪与 Anythingslider 结合起来
我正在寻找有关在何处添加 Google Analytics 事件跟踪到具有 AnythingSlider 已安装。我有一个不会自动滚动的滑块,您必须单击导航按钮才能移动幻灯片。我希望跟踪这些点击。我还想跟踪访问者是否单击幻灯片中的链接。
我希望使用 Google 的页内分析来跟踪访问者的点击行为并确定哪些项目(图像和短语)吸引了访问者的注意力,以便建立更好的引导渠道。
在在这里发帖之前,我确实尝试过 Google 的事件跟踪指南,但我不确定在哪里从滑块中获取导航点击。
I am looking for some clues on where to add Google Analytics Event Tracking to a page that has AnythingSlider installed. I have a slider that does not autoscroll and you have to click the navigation buttons for the slides to move. I wish to track these clicks. I would also like to track if a visitor clicks on a link within a slide.
I am wishing to use Google's InPage Analytics to track visitor click behavior and workout what items (images & phrases) catch the attention of the visitor in order to make better lead funnels.
I did try the Event tracking guide from Google before posting here, but I was unsure of where to pickup the navigation clicks from the slider.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将其添加到 html 中的任何 a href
add this to any a href in your html
未经测试(我准备自己做这件事),但 API 建议我应该使用
onSlideComplete
回调,例如(假设您已将面板的名称设置在一个名为 Pages 的数组中)。编辑:小心
onSlideComplete
,它似乎触发得太频繁。设置一个 var 以告诉它不要重新触发,并使用onSlideBegin
重置该 var。Untested (I'm about to do this myself) but the API suggests to me that I should use the
onSlideComplete
callback, e.g. (assuming you've set up the names of your panels in an array called pages).EDIT: Be careful with
onSlideComplete
, it seems to fire off too often. Set a var to tell it not to refire, and reset the var withonSlideBegin
.