Skip to content

Commit

Permalink
✨ add GA for SitesRecommend
Browse files Browse the repository at this point in the history
  • Loading branch information
nicejade committed Dec 4, 2021
1 parent 3ba4f21 commit 7da6144
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/components/sidebar/SitesRecommend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
<div id="sites-recommend">
<a
target="_blank"
class="nice-link-recommend gtag-track"
class="nice-link-recommend"
rel="noopener"
data-action="link-recommend"
data-category="aside"
data-label="link-recommend"
@click="onRecommendClick"
:href="reportPath"
>👍优质网站推荐
</a>
Expand All @@ -24,6 +22,12 @@ export default {
reportPath: REPORT_PATH,
}
},
methods: {
onRecommendClick() {
this.$gtagTracking('link-recommend', 'aside', 'link-recommend')
},
},
}
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/views/FriendLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default {
data() {
return {
tableData: [],
niceLinksServerStr: 'https://z3.ax1x.com/2021/11/23/oSwcTI.jpg',
niceLinksServerStr: 'https://nicelinks.oss-cn-shenzhen.aliyuncs.com/nicelinks-service.jpeg',
}
},
Expand Down

0 comments on commit 7da6144

Please sign in to comment.