Simple Google Analytics - Version 1.1.3

Version Description

Download this release

Release Info

Developer JeromeMeyer62
Plugin Icon 128x128 Simple Google Analytics
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

languages/simple_google_analytics-fr_FR.mo CHANGED
Binary file
languages/simple_google_analytics-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: simple_google_analytics\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-05-09 10:43+0100\n"
6
- "PO-Revision-Date: 2011-05-09 10:44+0100\n"
7
  "Last-Translator: Jerome Meyer <jerome@hollywoud.net>\n"
8
  "Language-Team: JeromeMeyer62 <jerome@hollywoud.net>\n"
9
  "MIME-Version: 1.0\n"
@@ -14,6 +14,10 @@ msgstr ""
14
  "X-Poedit-Language: French\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
 
 
 
 
17
  #: simple_google_analytics.php:69
18
  msgid "Simple Google Analytics."
19
  msgstr "Simple Google Analytics"
2
  msgstr ""
3
  "Project-Id-Version: simple_google_analytics\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-06-20 14:56+0100\n"
6
+ "PO-Revision-Date: 2011-06-20 14:56+0100\n"
7
  "Last-Translator: Jerome Meyer <jerome@hollywoud.net>\n"
8
  "Language-Team: JeromeMeyer62 <jerome@hollywoud.net>\n"
9
  "MIME-Version: 1.0\n"
14
  "X-Poedit-Language: French\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: simple_google_analytics.php:29
18
+ msgid "Simple Google Analytics Settings"
19
+ msgstr "Paramètres Simple Google Analytics"
20
+
21
  #: simple_google_analytics.php:69
22
  msgid "Simple Google Analytics."
23
  msgstr "Simple Google Analytics"
readme.txt CHANGED
@@ -4,9 +4,9 @@ Contributors: JeromeMeyer62
4
  Tags: google analytics, wordpress statistics, tracking
5
  Plugin link: http://www.arobase62.fr/2011/03/23/simple-google-analytics/
6
  Requires at least: 2.6
7
- Tested up to: 3.1.2
8
- Version: 1.1.2
9
- Stable tag: 1.1.2
10
 
11
  == Description ==
12
  Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages.
@@ -47,6 +47,8 @@ It should work from 2.6 upwards.. Has been tested on all current versions and is
47
  1. Screenshot Simple Google Analytics Admin Page
48
 
49
  == Changelog ==
 
 
50
  = version 1.1.2 =
51
  * French Translation Bug
52
  = version 1.1.1 =
4
  Tags: google analytics, wordpress statistics, tracking
5
  Plugin link: http://www.arobase62.fr/2011/03/23/simple-google-analytics/
6
  Requires at least: 2.6
7
+ Tested up to: 3.1.3
8
+ Version: 1.1.3
9
+ Stable tag: 1.1.3
10
 
11
  == Description ==
12
  Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages.
47
  1. Screenshot Simple Google Analytics Admin Page
48
 
49
  == Changelog ==
50
+ = version 1.1.3 =
51
+ * Added a translation for 'Simple Google Analytics Settings'
52
  = version 1.1.2 =
53
  * French Translation Bug
54
  = version 1.1.1 =
simple_google_analytics.php CHANGED
@@ -26,7 +26,7 @@ Author URI: http://www.arobase62.fr
26
  // Ajoute un sous-menu aux reglages
27
  function SGA_menu() {
28
  // Genere le lien vers la page de configuration, seulement pour les administrateurs, et lance la fonction 'sga_settings' une fois le menu charge
29
- add_options_page('Simple Google Analytics', 'Simple Google Analytics Settings', 'administrator', __FILE__, 'SGA_settings') ;
30
  // On lance la fonction au moment ou l'on accede a la zone d'admin
31
  add_action( 'admin_init', 'SGA_register_mysettings') ;
32
  }
@@ -153,21 +153,24 @@ Author URI: http://www.arobase62.fr
153
  <script type="text/javascript">
154
 
155
  var _gaq = _gaq || [];
156
- _gaq.push(['_setAccount', "<?php echo get_option('analytics_id'); ?>"]);
 
157
 
158
- // Multidomain
159
- <?php if (get_option('multidomain_setting') == 1) { ?> _gaq.push(['_setDomainName', "<?php echo get_option('multidomain_domain'); ?>"]); <?php } ?>
 
 
 
160
 
161
- // Site Speed
162
- <?php if (get_option('sitespeed_setting') == 1) { ?> _gaq.push(['_trackPageLoadTime']); <?php } ?>
163
-
164
- _gaq.push(['_trackPageview']);
165
 
166
- (function() {
167
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
168
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
169
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
170
- })();
171
 
172
  </script>
173
 
26
  // Ajoute un sous-menu aux reglages
27
  function SGA_menu() {
28
  // Genere le lien vers la page de configuration, seulement pour les administrateurs, et lance la fonction 'sga_settings' une fois le menu charge
29
+ add_options_page('Simple Google Analytics', _e('Simple Google Analytics Settings'), 'administrator', __FILE__, 'SGA_settings') ;
30
  // On lance la fonction au moment ou l'on accede a la zone d'admin
31
  add_action( 'admin_init', 'SGA_register_mysettings') ;
32
  }
153
  <script type="text/javascript">
154
 
155
  var _gaq = _gaq || [];
156
+ _gaq.push(
157
+ ['_setAccount', "<?php echo get_option('analytics_id'); ?>"]
158
 
159
+ // Multidomain
160
+ <?php if (get_option('multidomain_setting') == 1) { ?>,['_setDomainName', "<?php echo get_option('multidomain_domain'); ?>"]<?php } ?>
161
+
162
+ // Site Speed
163
+ <?php if (get_option('sitespeed_setting') == 1) { ?>,['_trackPageLoadTime']<?php } ?>
164
 
165
+ // Basic page tracking
166
+ ,['_trackPageview']
167
+ );
 
168
 
169
+ (function(d) {
170
+ var ga = d.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
171
+ ga.src = ('https:' == d.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
172
+ var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
173
+ })(document);
174
 
175
  </script>
176