Commit cd02016e by zhengxiao

feat(custom): 首页添加访问埋点

parent dab4df62
......@@ -141,6 +141,8 @@
<script>
import courseBlock from '@/components/course-block.vue'
import { setTrackData } from '@/utils/util'
import { ffrom } from '@/utils/enums'
export default {
name: 'HomePage',
......@@ -179,6 +181,19 @@ export default {
},
mounted() {
// this.startAutoPlay()
setTrackData({
events: [
{
event_id: 'page_visit',
event_custom_properties: {
part: 'courses_list_practical',
position: '',
element: '',
from: ffrom,
},
},
],
})
},
beforeDestroy() {
// this.clearAutoPlay()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment