Skip to content

jassey/common_track

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

common_track

common track function for GA & Piwik。

各个页面在提交数据时,调用统一的封装函数,而不用管具体的:GA,UA,Piwik跟踪代码。

例如:

function wa_track_event(cate, action, label, value) {
}

页面代码:

wa_track_event("分享", "facebook");

封装的函数包括:

  • 事件
  • 自定义变量
  • 电子商务

About

common track function for GA & Piwik

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published