Commit 0f62ba7608481142c8972742b52941927b355ff2
1 parent
29276e29
feat: 1.0.7&add gtm
Showing
4 changed files
with
17 additions
and
3 deletions
app.vue
... | ... | @@ -7,7 +7,6 @@ import { useCategoryStore } from '~/stores/category' |
7 | 7 | // import { useI18n } from 'vue-i18n' |
8 | 8 | // const { t } = useI18n() |
9 | 9 | |
10 | - | |
11 | 10 | useHead({ |
12 | 11 | script: [ |
13 | 12 | { src: 'https://www.googletagmanager.com/gtag/js?id=AW-881504701', async: true }, |
... | ... | @@ -19,16 +18,26 @@ useHead({ |
19 | 18 | gtag('config', 'AW-881504701'); |
20 | 19 | `, |
21 | 20 | type: 'text/javascript' |
21 | + }, | |
22 | + { | |
23 | + children: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
24 | + new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
25 | + j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
26 | + 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
27 | + })(window,document,'script','dataLayer','GTM-MGPGTKX3') | |
28 | + `, | |
29 | + type: 'text/javascript' | |
22 | 30 | } |
23 | 31 | ] |
24 | 32 | }) |
25 | 33 | |
26 | - | |
27 | 34 | const categoryStore = useCategoryStore() |
28 | 35 | categoryStore.getList() |
29 | 36 | </script> |
30 | 37 | |
31 | 38 | <template> |
39 | + <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MGPGTKX3" height="0" width="0" | |
40 | + style="display:none;visibility:hidden"></iframe></noscript> | |
32 | 41 | <Header v-if="!isMobile()" /> |
33 | 42 | <MobileHeader v-if="isMobile()" /> |
34 | 43 | <div class="tw-min-h-[700px]"> | ... | ... |
components/Footer.vue
deploy/prod.sh
pages/contact.vue
... | ... | @@ -23,6 +23,10 @@ |
23 | 23 | <label class="text-subtitle-1 tw-mr-4 tw-w-20 tw-inline-block">Wechat</label> |
24 | 24 | <span>contactcanrd</span> |
25 | 25 | </div> |
26 | + <div class="tw-mb-1"> | |
27 | + <label class="text-subtitle-1 tw-mr-4 tw-w-20 tw-inline-block">Whatsapp</label> | |
28 | + <span>+86 19867737979</span> | |
29 | + </div> | |
26 | 30 | <div class="tw-w-[300px]"> |
27 | 31 | <v-img src="/wechat.jpg" alt="canrud-wechat"></v-img> |
28 | 32 | </div> | ... | ... |