最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

html - How do I add GoogleAnalytics header snippet in WordPress?

programmeradmin4浏览0评论

I am not sure where exactly I navigate to add the analytics code once so it gets to all the WordPress pages.

Do I change the HTML manually or can I do this from WordPress somewhere?

I am not sure where exactly I navigate to add the analytics code once so it gets to all the WordPress pages.

Do I change the HTML manually or can I do this from WordPress somewhere?

Share Improve this question asked Dec 29, 2019 at 0:45 GenadinikGenadinik 2311 gold badge3 silver badges12 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

Paste to the closing </body>tag ... Look for the footer.php file in your theme template on your hosting

It is not recommended to edit the theme file directly. It is best practice to use some sort of plugin.

Monster Insight is one of the best available in the market. It is available in the WordPress repository.

发布评论

评论列表(0)

  1. 暂无评论