Wordpress在函数中添加Google Anamytics
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Wordpress在函数中添加Google Anamytics相关的知识,希望对你有一定的参考价值。
Simply paste the code below and insert your Google Analytics where it says paste your Google Analytics. You can paste the code once in your functions.php file and never have to worry about it again. We are adding an action to the wp_footer, so it will automatically insert adsense codes wherever on all pages you have the wp_footer string.
<?php add_action('wp_footer', 'add_googleanalytics'); function add_googleanalytics() { ?> // Paste your Google Analytics code from Step 6 here <?php } ?>
以上是关于Wordpress在函数中添加Google Anamytics的主要内容,如果未能解决你的问题,请参考以下文章
php 将Google字体添加到Wordpress(正确的方式)
scss Wordpress - 将Google字体添加到functions.php
php 使用Google Analytics自定义维度添加WordPress作者跟踪
text 将Google Analytics添加到WordPress主题functions.php