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
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> | ... | ... |