Javascript 如何将Google Adwords(和Google Tag Manager/Analytics)与nuxt.js应用程序结合使用

Javascript 如何将Google Adwords(和Google Tag Manager/Analytics)与nuxt.js应用程序结合使用,javascript,vue.js,nuxt.js,google-tag-manager,google-ads-api,Javascript,Vue.js,Nuxt.js,Google Tag Manager,Google Ads Api,我有一个nuxt应用程序,它使用nuxt社区模块gtm模块: 它负责谷歌标签管理器的工作 我现在有一个案例,我需要将Adwords添加到混合中。 根据这个来源(),只需在我的全局站点标签中添加另一个配置id即可,即AW-CONVERSION\u id <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?i

我有一个nuxt应用程序,它使用nuxt社区模块
gtm模块
: 它负责谷歌标签管理器的工作

我现在有一个案例,我需要将Adwords添加到混合中。 根据这个来源(),只需在我的全局站点标签中添加另一个配置id即可,即
AW-CONVERSION\u id

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID">   </script>

<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'GA_TRACKING_ID');
  gtag('config','AW-CONVERSION_ID'); // THIS IS WHAT I NEED ADDITIONALLY
</script>
不幸的是,
gtm模块
既没有描述如何处理Adwords,也没有描述如何向站点标签添加自定义内容

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID">   </script>

<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'GA_TRACKING_ID');
  gtag('config','AW-CONVERSION_ID'); // THIS IS WHAT I NEED ADDITIONALLY
</script>

window.dataLayer=window.dataLayer | |[];
函数gtag(){dataLayer.push(参数);}
gtag('js',新日期());
gtag('config','GA_TRACKING_ID');
gtag('config','AW-CONVERSION_ID');//这是我另外需要的
有人知道我如何使用nuxt gtm社区模块实现这里描述的解决方案()吗

非常感谢您的帮助


干杯

试试@nuxtjs/google tag模块,因为它看起来有更多的选项

试试@nuxtjs/google tag模块,因为它看起来有更多的选项