Commit 9d346e3b61ff1df35619ac5390bf665172926f09
1 parent
e55e112a
fix: contact Event snippet for 网页浏览转化 conversion ,prod2-66/67
Showing
2 changed files
with
5 additions
and
2 deletions
deploy/prod2.sh
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | # 变量定义 | 2 | # 变量定义 |
3 | -LAST_TAG="1.0.65" | ||
4 | -TAG="1.0.66" | 3 | +LAST_TAG="1.0.66" |
4 | +TAG="1.0.67" | ||
5 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" | 5 | TARGET_PATH="/root/web/canrud-outside-nuxt-front" |
6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" | 6 | DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" |
7 | IMAGE_NAME="canrud-outside-front" | 7 | IMAGE_NAME="canrud-outside-front" |
pages/contact.vue
@@ -366,6 +366,9 @@ const loadRecaptchaScript = (callback) => { | @@ -366,6 +366,9 @@ const loadRecaptchaScript = (callback) => { | ||
366 | useHead({ | 366 | useHead({ |
367 | title: "Contact", | 367 | title: "Contact", |
368 | }); | 368 | }); |
369 | + | ||
370 | +window.addEventListener('load', function (event) { if (window.location.href.includes("contact")) { gtag('event', 'conversion', {'send_to': 'AW-881504701/HtNtCIqB-bQaEL3jqqQD'}); } }); | ||
371 | + | ||
369 | </script> | 372 | </script> |
370 | 373 | ||
371 | <style lang="scss" scoped> | 374 | <style lang="scss" scoped> |