Google Analyticator - Version 2.01

Version Description

Download this release

Release Info

Developer cavemonkey50
Plugin Icon 128x128 Google Analyticator
Version 2.01
Comparing to
See all releases

Code changes from version 2.0 to 2.01

Files changed (2) hide show
  1. google-analyticator.php +2 -2
  2. readme.txt +1 -1
google-analyticator.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
- * Version: 2.0
5
* Plugin URI: http://cavemonkey50.com/code/google-analyticator/
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the options page</a> and enter your Google Analytics' UID and enable logging.
7
* Author: Ronald Heft, Jr.
@@ -319,7 +319,7 @@ function add_google_analytics() {
319
echo "<!-- Google Analytics Tracking by Google Analyticator: http://cavemonkey50.com/code/google-analyticator/ -->\n";
320
echo " <script type=\"text/javascript\">\n";
321
echo " var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");\n";
322
- echo " document.write(\"\<script src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'>\<\/script>\" );\n";
323
echo " </script>\n\n";
324
325
echo " <script type=\"text/javascript\">\n";
1
<?php
2
/*
3
* Plugin Name: Google Analyticator
4
+ * Version: 2.01
5
* Plugin URI: http://cavemonkey50.com/code/google-analyticator/
6
* Description: Adds the necessary JavaScript code to enable <a href="http://www.google.com/analytics/">Google's Analytics</a>. After enabling this plugin visit <a href="options-general.php?page=google-analyticator.php">the options page</a> and enter your Google Analytics' UID and enable logging.
7
* Author: Ronald Heft, Jr.
319
echo "<!-- Google Analytics Tracking by Google Analyticator: http://cavemonkey50.com/code/google-analyticator/ -->\n";
320
echo " <script type=\"text/javascript\">\n";
321
echo " var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");\n";
322
+ echo " document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));\n";
323
echo " </script>\n\n";
324
325
echo " <script type=\"text/javascript\">\n";
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cavemonkey50.com/code/
4
Tags: stats, google, analytics, tracking
5
Requires at least: 2.0
6
Tested up to: 2.3
7
- Stable tag: 2.0
8
9
Adds the necessary JavaScript code to enable Google Analytics.
10
4
Tags: stats, google, analytics, tracking
5
Requires at least: 2.0
6
Tested up to: 2.3
7
+ Stable tag: 2.01
8
9
Adds the necessary JavaScript code to enable Google Analytics.
10