wordpress皮肤更新不丢失[百度]/[Google]统计跟踪代码

突然发现网站的流量变成零了,那个心痛和无语,除了泪就是泪。可是转念一想,最少还有我自己在访问,怎么会一个都没有呢,检查了下跟踪代码,还真的是丢失了。再看一下零访问开始的时间就了然了,最近wp升级到了4.0,更新了core和theme,所以丢失了theme中跟踪代码的设置。

为此找了款插件,插件的设置在更新中是会被保留的,所以不需要担心更新的问题。发现“Header and Footer”这款插件还不错,几十万的下载,功能够用了,它的原理就是把跟踪的代码在theme的wp_footer段添加进去,header也是同理。

作者

Carry

发布于

2014-09-23

更新于

2026-05-23

许可协议

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.
You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.