小编zbo*_*aya的帖子

如何结合使用Google Analytics(分析)和Google AdWords gtag.js?

我的Google Analytics(分析)代码是:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119899800-1"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-119899800-1');
</script>
Run Code Online (Sandbox Code Playgroud)

Google AdWords为我提供了相同的代码,例如:

<!-- Global site tag (gtag.js) - Google AdWords: 796207283 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-796207283"></script>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'AW-796207283');
</script>
Run Code Online (Sandbox Code Playgroud)

在哪里以及如何一起找到这些代码?

google-analytics google-adwords

6
推荐指数
1
解决办法
1754
查看次数

标签 统计

google-adwords ×1

google-analytics ×1