Commit 7605aeb2 by 郑晓

Merge branch 'feat_course_home_visit_250324' into 'master'

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

See merge request !8
parents dab4df62 cd02016e
...@@ -141,6 +141,8 @@ ...@@ -141,6 +141,8 @@
<script> <script>
import courseBlock from '@/components/course-block.vue' import courseBlock from '@/components/course-block.vue'
import { setTrackData } from '@/utils/util'
import { ffrom } from '@/utils/enums'
export default { export default {
name: 'HomePage', name: 'HomePage',
...@@ -179,6 +181,19 @@ export default { ...@@ -179,6 +181,19 @@ export default {
}, },
mounted() { mounted() {
// this.startAutoPlay() // this.startAutoPlay()
setTrackData({
events: [
{
event_id: 'page_visit',
event_custom_properties: {
part: 'courses_list_practical',
position: '',
element: '',
from: ffrom,
},
},
],
})
}, },
beforeDestroy() { beforeDestroy() {
// this.clearAutoPlay() // 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