数据采集(五)图片区域(IMG)事件

本样例主要是提供图片事件跟踪采集的脚本例字。
样例一

image2016-5-11%2015%3A12%3A7.png?version=1&modificationDate=1462951365000&api=v2

采集内容

  • 点击

需要采集“跳转url” 和"图片地址src"

 

  • 移入 / 移出

需要采集"图片地址src"数据

采集位置:首页 ( I-00:BAN-01)

采集事件:click, hin(Mouseover) , hout(Mouseout)

采集代码:

  • click

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'click',
    eventLabel: 'I-00:BAN-01' ,
    eventValue:{to:"/portal/html/lifestyle/dog.html",src:'http://static.modernavenue.com/portal/data/images/index/pic/bannerd.jpg'} 
});

  • hin(Mouseover)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hin',
    eventLabel: 'I-00:BAN-01' ,
    eventValue:{src:'http://static.modernavenue.com/portal/data/images/index/pic/bannerd.jpg'} 
});

  • hout(Mouseout)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hout',
    eventLabel: 'I-00:BAN-01' ,
    eventValue:{src:'http://static.modernavenue.com/portal/data/images/index/pic/bannerd.jpg'} 
});

样例二

image2016-5-11%2015%3A42%3A4.png?version=1&modificationDate=1462953162000&api=v2

采集内容

  • 点击

需要采集“跳转url” 和"图片地址src"

 

  • 移入 / 移出

需要采集"图片地址src"数据

采集位置:首页 ( I-00:BAN-03-02)

采集事件:click, hin(Mouseover) , hout(Mouseout)

采集代码:

  • click

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'click',
    eventLabel: 'I-00:BAN-03-02' ,
    eventValue:{to:"../activity/special_cosmetic_0510.html",src:'http://static.modernavenue.com/portal/data/images/index/pic/bannerd.jpg'} 
});

  • hin(Mouseover)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hin',
    eventLabel: 'I-00:BAN-03-02' ,
    eventValue:{src:'http://static.modernavenue.com/portal/data/images/index/pic/bannerd.jpg'} 
});

  • hout(Mouseout)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hout',
    eventLabel: 'I-00:BAN-03-02' ,
    eventValue:{src:"http://static.modernavenue.com/portal/data/images/index/pic/bannerd.jpg'} 
});

样例三

 

image2016-5-11%2016%3A15%3A4.png?version=1&modificationDate=1462955142000&api=v2

采集内容

  • 点击

需要采集“跳转url” 和"图片地址src"

 

  • 移入 / 移出

需要采集"图片地址src"数据

采集位置:摩登男士 ( M-01:PRO-01-XX)

采集事件:click, hin(Mouseover) , hout(Mouseout)

采集代码:

  • click

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'click',
    eventLabel: 'M-01:PRO-01-XX' ,
    eventValue:{to:"../mall/moDetail.html?productId=1000010241",      src:'http://static.modernavenue.com/img/pictures/B_100000317/1000010241/prdl_113217017_900_1_ls.jpg'} 
});

  • hin(Mouseover)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hin',
    eventLabel: 'M-01:PRO-01-XX' ,
    eventValue:{src:'http://static.modernavenue.com/img/pictures/B_100000317/1000010241/prdl_113217017_900_1_ls.jpg'} 
});

  • hout(Mouseout)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hout',
    eventLabel: 'M-01:PRO-01-XX' ,
    eventValue:{src:'http://static.modernavenue.com/img/pictures/B_100000317/1000010241/prdl_113217017_900_1_ls.jpg'} 
});

样例四

 

image2016-5-11%2017%3A0%3A19.png?version=1&modificationDate=1462957857000&api=v2

采集内容

  • 点击

需要采集关键值 和"图片地址src"

 

  • 移入 / 移出

需要采集"图片地址src"数据

采集位置:产品详情页 ( M-03:PRO-01)

采集事件:click, hin(Mouseover) , hout(Mouseout)

采集代码:

  • click

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'click',
    eventLabel: 'M-03:PRO-01' ,
    eventValue:{values:{productId:1000010223},  src:'http://static.modernavenue.com/img/pictures/B_100000318/1000010223/prdl_111217265_900_1_dl.jpg'} 
});

  • hin(Mouseover)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hin',
    eventLabel: 'M-03:PRO-01' ,
    eventValue:{src:'http://static.modernavenue.com/img/pictures/B_100000318/1000010223/prdl_111217265_900_1_dl.jpg'} 
});

  • hout(Mouseout)

_tracker.track( 'send' , {
    hitType: 'event',
    eventCategory: 'IMG ',
    eventAction: 'hout',
    eventLabel: 'M-03:PRO-01' ,
    eventValue:{src:'http://static.modernavenue.com/img/pictures/B_100000318/1000010223/prdl_111217265_900_1_dl.jpg'} 
});

转载于:https://my.oschina.net/VILLE/blog/1186772

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值