|
我在WPBlogheader.php文件里添加GGAnalytics代码,出现以下提示是怎么回事?Parse error: syntax error, unexpected '<' in /home/pspbay/public_html/uhappyclub.com/wp-blog-header.php on line 21。我明白英文意思,但是不知道<会 为什么出错- <?php
- /**
- * Loads the WordPress environment and template.
- *
- * @package WordPress
- */
- if ( !isset($wp_did_header) ) {
- $wp_did_header = true;
- require_once( dirname(__FILE__) . '/wp-load.php' );
- wp();
- require_once( ABSPATH . WPINC . '/template-loader.php' );
- }
- <script type="text/javascript">
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
- </script>
- <script type="text/javascript">
- try {
- var pageTracker = _gat._getTracker("UA-11735751-1");
- pageTracker._trackPageview();
- } catch(err) {}</script>
- ?>
复制代码 |
|