在WordPress中安装Google跟踪代码管理器(无需编写PHP主题)

我想在我的WordPress网站上安装Google跟踪代码管理器。我看过一些指南, 教它如何去做, 但是所有这些都要求我在主题的php中(在Appearance-> editor中)为<body>代码部分放置一个代码。对我来说, 问题是构建主题的那个人说一旦发布更新, 我将插入的代码将被删除。

还有没有其他方法可以插入Google标记管理器要求的代码(尤其是在<body>之后)-无需在主题的php中插入代码?

多谢你的协助!


#1


更简单的方法是通过插件, 尝试将随机代码片段插入php主题可能会破坏网站。

你可以安装以下易于使用的插件之一。然后将Google标记代码插入插件。在此处提供的链接中尝试免费插件。下载插件, 然后安装到你的wordpress网站。

参考:https://wordpress.org/plugins/duracelltomi-google-tag-manager/

如果你是WordPress的新手, 请尝试有关如何安装插件的本教程。请注意, 你必须是管理员用户才能安装插件。

参考:https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/

希望这可以帮助…

来源:

https://www.srcmini02.com/63589.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_37599.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?