Commit 9d346e3b61ff1df35619ac5390bf665172926f09

Authored by boyang
1 parent e55e112a

fix: contact Event snippet for 网页浏览转化 conversion ,prod2-66/67

deploy/prod2.sh
1 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 5 TARGET_PATH="/root/web/canrud-outside-nuxt-front"
6 6 DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front"
7 7 IMAGE_NAME="canrud-outside-front"
... ...
pages/contact.vue
... ... @@ -366,6 +366,9 @@ const loadRecaptchaScript = (callback) => {
366 366 useHead({
367 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 372 </script>
370 373  
371 374 <style lang="scss" scoped>
... ...