怎么添加google analytics代码?
1. 你需要从google analytics那里拿到你的跟踪代码 tracking code,这个代码大概的样子是下面这样的:
<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-xxxxxx"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-xxxxxx'); </script>
2. 你去到在wordpress后台,去到这个位置:Elementor > Custom Code, 然后点击Add New新加一个custom code, 然后Location那里选择成<head>
3. 然后把上面的代码拷贝进去就可以了
其它你可能感兴趣的FAQ
如果你的问题没有得到解决或者我们的回答不清楚,请联系我们。