chore: update gtm track
This commit is contained in:
@@ -97,6 +97,9 @@ const toggleStuff = (item: StuffItem, category = '', e?: Event) => {
|
||||
action: 'click_stuff',
|
||||
label: '食材',
|
||||
})
|
||||
gtm?.trackEvent({
|
||||
event: `click_stuff_${item.name}`,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -113,6 +116,9 @@ const clickTool = (item: StuffItem) => {
|
||||
action: 'click_tool',
|
||||
label: '工具',
|
||||
})
|
||||
gtm?.trackEvent({
|
||||
event: `click_tool_${item.name}`,
|
||||
})
|
||||
}
|
||||
|
||||
const recipePanel = ref()
|
||||
|
||||
@@ -15,6 +15,9 @@ const triggerGtm = (val: string) => {
|
||||
action: 'click_recipe',
|
||||
label: '跳转菜谱',
|
||||
})
|
||||
gtm?.trackEvent({
|
||||
event: `click_dish_${val}`,
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user