Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【kit.ta_m】移动端埋点快捷方式 #10

Open
Kelichao opened this issue Feb 20, 2017 · 0 comments
Open

【kit.ta_m】移动端埋点快捷方式 #10

Kelichao opened this issue Feb 20, 2017 · 0 comments

Comments

@Kelichao
Copy link
Owner

Kelichao commented Feb 20, 2017

手机端埋点

移动端分为4种埋点

  • 编号1:页面显示埋点: hxmPageStat(id/obj).如果是要传别的参数就用obj形式,2,3,4形式的扩展都为加一个对象参数。
    hxmPageStat({"id":"m_20140901","ac_id":"1"}
  • 编号2:非跳转点击埋点: hxmClickStat(id)

to_resourcesid为跳转目的地的id

  • 编号3:跳转手炒网页: hxmJumpPageStat(id, to_resourcesid);
  • 编号4:跳转手炒客户端页: hxmJumpNativeStat(id, to_resourcesid)

加工后

方式一:页面显示埋点

// 不需要也无法添加额外参数的模式
kit.ta_m({
	type: 1,
	para: {
		"1": "111111111111",
		"2": "2222222222222"
	}
})

方式二:非跳转点击埋点

滑动到中间或者滑动到底部的埋点需要用这种方法,跳回来会有额外参数增加,可以通过trigger事件触发

kit.ta_m({
	type: 2,
	para: {
		".bt1": "111111111111111",
		".bt2": "222222222222222",
	},
	ext: {
		"exttttttt": "00000000000000000"
	}
})

方式三:跳转手炒网页

这里需要注意的是该类事件委托要在跳转之前

kit.ta_m({
	type: 3,
	para: {
		".bt1": [111111111111111,2222222222]
	},
	ext: {
		"exttttttt": "00000000000000000"
	}
})

方式四:跳转手炒客户端

kit.ta_m({
	type: 4,
	para: {
		".bt1": [111111111111111, 22222222222]
	},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant