diff --git a/docs/.vuepress/theme/components/CodeFund.vue b/docs/.vuepress/theme/components/CodeFund.vue index 043dfe3..58da8d4 100644 --- a/docs/.vuepress/theme/components/CodeFund.vue +++ b/docs/.vuepress/theme/components/CodeFund.vue @@ -30,7 +30,7 @@ export default { }, methods: { gaSendEvent ({category, action, label}) { - if (typeof ga !== 'undefined') { + if (typeof ga === 'function') { return ga('send', 'event', category, action, label); } },