Simple Google Analytics - Version 1.1.6

Version Description

Download this release

Release Info

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

Code changes from version 1.1.5 to 1.1.6

languages/simple_google_analytics-fr_FR.mo CHANGED
Binary file
languages/simple_google_analytics-fr_FR.po CHANGED
@@ -2,89 +2,101 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: simple_google_analytics\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2011-06-29 15:22+0100\n"
6
- "PO-Revision-Date: 2011-06-29 15:22+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"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
- "X-Poedit-Basepath: C:\\Users\\Jerome\\Documents\\Dev\\Jerome\\Wordpress\\simple-google-analytics\n"
14
  "X-Poedit-Language: French\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
- #: simple_google_analytics.php:32
18
  msgid "Simple Google Analytics Settings"
19
  msgstr "Paramètres Simple Google Analytics"
20
 
21
- #: simple_google_analytics.php:39
22
  msgid "Settings"
23
  msgstr "Paramètres"
24
 
25
- #: simple_google_analytics.php:79
26
  msgid "Simple Google Analytics."
27
  msgstr "Simple Google Analytics"
28
 
29
- #: simple_google_analytics.php:82
30
  msgid "Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages."
31
  msgstr "Simple Google Analytics vous permet d'ajouter simplement votre code Google Analytics dans toutes vos pages"
32
 
33
- #: simple_google_analytics.php:84
34
  msgid "Just add your ID, choose if you are on a sub-domain (setting in Google Analytics code), and enter the domain."
35
  msgstr "Ajoutez juste votre ID, choisissez si vous êtes sur un sous-domaine (paramètre dans le code Google Analytics), et entrez le domaine."
36
 
37
- #: simple_google_analytics.php:86
38
  msgid "That's all, you're ready to go."
39
  msgstr "C'est tout, vous pouvez continuer."
40
 
41
- #: simple_google_analytics.php:95
 
 
 
 
 
 
 
 
 
 
 
 
42
  msgid "Google Analytics ID"
43
  msgstr "ID Google Analytics"
44
 
45
- #: simple_google_analytics.php:97
46
  msgid "Example : UA-0000000-0."
47
  msgstr "Exemple : UA-0000000-0."
48
 
49
- #: simple_google_analytics.php:101
50
  msgid "Add Site Speed to the tracking code ?"
51
  msgstr "Ajouter la vitesse du site au code de suivi ?"
52
 
53
- #: simple_google_analytics.php:104
54
- #: simple_google_analytics.php:113
55
  msgid "No"
56
  msgstr "Non"
57
 
58
- #: simple_google_analytics.php:105
59
- #: simple_google_analytics.php:114
60
  msgid "Yes"
61
  msgstr "Oui"
62
 
63
- #: simple_google_analytics.php:110
64
  msgid "Is your blog a sub-domain ? (Google Analytics Setting)"
65
  msgstr "Est-ce que le blog est un sous-domaine ? (Paramètre Google Analytics)"
66
 
67
- #: simple_google_analytics.php:119
68
  msgid "Domain"
69
  msgstr "Domaine"
70
 
71
- #: simple_google_analytics.php:121
72
  msgid "Example : domain.com"
73
  msgstr "Exemple : domaine.com"
74
 
75
- #: simple_google_analytics.php:127
76
  msgid "Save Changes"
77
  msgstr "Sauvegarder les changements"
78
 
79
- #: simple_google_analytics.php:133
80
  msgid "If you need any support go to the plugin homepage and contact me !"
81
  msgstr "Si vous avez des questions, n'hésitez pas à aller sur la page de l'extension et à me contacter !"
82
 
83
- #: simple_google_analytics.php:137
84
  msgid "This plugin is largely inspired by the Google Analytics Input plugin from Roy Duff ( http://wpable.com )."
85
  msgstr "Cette extension est largement inspirée par l'extension Google Analytics Input de Roy Duff ( http://wpable.com )."
86
 
87
- #: simple_google_analytics.php:139
88
  msgid "If you like this plugin, you can Donate :)"
89
  msgstr "Si vous aimé cette extension, vous pouvez me faire un don :)"
90
 
2
  msgstr ""
3
  "Project-Id-Version: simple_google_analytics\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-11-15 10:39+0100\n"
6
+ "PO-Revision-Date: 2011-11-15 10:40+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"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: C:\\Users\\Jerome\\Documents\\Dev\\Jerome\\Wordpress\\simple-google-analytics-dev\n"
14
  "X-Poedit-Language: French\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
+ #: simple_google_analytics.php:30
18
  msgid "Simple Google Analytics Settings"
19
  msgstr "Paramètres Simple Google Analytics"
20
 
21
+ #: simple_google_analytics.php:37
22
  msgid "Settings"
23
  msgstr "Paramètres"
24
 
25
+ #: simple_google_analytics.php:78
26
  msgid "Simple Google Analytics."
27
  msgstr "Simple Google Analytics"
28
 
29
+ #: simple_google_analytics.php:81
30
  msgid "Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages."
31
  msgstr "Simple Google Analytics vous permet d'ajouter simplement votre code Google Analytics dans toutes vos pages"
32
 
33
+ #: simple_google_analytics.php:83
34
  msgid "Just add your ID, choose if you are on a sub-domain (setting in Google Analytics code), and enter the domain."
35
  msgstr "Ajoutez juste votre ID, choisissez si vous êtes sur un sous-domaine (paramètre dans le code Google Analytics), et entrez le domaine."
36
 
37
+ #: simple_google_analytics.php:85
38
  msgid "That's all, you're ready to go."
39
  msgstr "C'est tout, vous pouvez continuer."
40
 
41
+ #: simple_google_analytics.php:94
42
+ msgid "Where to put the code ?"
43
+ msgstr "Où placer le code ?"
44
+
45
+ #: simple_google_analytics.php:97
46
+ msgid "Header"
47
+ msgstr "Header"
48
+
49
+ #: simple_google_analytics.php:98
50
+ msgid "Footer"
51
+ msgstr "Footer"
52
+
53
+ #: simple_google_analytics.php:103
54
  msgid "Google Analytics ID"
55
  msgstr "ID Google Analytics"
56
 
57
+ #: simple_google_analytics.php:105
58
  msgid "Example : UA-0000000-0."
59
  msgstr "Exemple : UA-0000000-0."
60
 
61
+ #: simple_google_analytics.php:109
62
  msgid "Add Site Speed to the tracking code ?"
63
  msgstr "Ajouter la vitesse du site au code de suivi ?"
64
 
65
+ #: simple_google_analytics.php:112
66
+ #: simple_google_analytics.php:121
67
  msgid "No"
68
  msgstr "Non"
69
 
70
+ #: simple_google_analytics.php:113
71
+ #: simple_google_analytics.php:122
72
  msgid "Yes"
73
  msgstr "Oui"
74
 
75
+ #: simple_google_analytics.php:118
76
  msgid "Is your blog a sub-domain ? (Google Analytics Setting)"
77
  msgstr "Est-ce que le blog est un sous-domaine ? (Paramètre Google Analytics)"
78
 
79
+ #: simple_google_analytics.php:127
80
  msgid "Domain"
81
  msgstr "Domaine"
82
 
83
+ #: simple_google_analytics.php:129
84
  msgid "Example : domain.com"
85
  msgstr "Exemple : domaine.com"
86
 
87
+ #: simple_google_analytics.php:135
88
  msgid "Save Changes"
89
  msgstr "Sauvegarder les changements"
90
 
91
+ #: simple_google_analytics.php:141
92
  msgid "If you need any support go to the plugin homepage and contact me !"
93
  msgstr "Si vous avez des questions, n'hésitez pas à aller sur la page de l'extension et à me contacter !"
94
 
95
+ #: simple_google_analytics.php:145
96
  msgid "This plugin is largely inspired by the Google Analytics Input plugin from Roy Duff ( http://wpable.com )."
97
  msgstr "Cette extension est largement inspirée par l'extension Google Analytics Input de Roy Duff ( http://wpable.com )."
98
 
99
+ #: simple_google_analytics.php:147
100
  msgid "If you like this plugin, you can Donate :)"
101
  msgstr "Si vous aimé cette extension, vous pouvez me faire un don :)"
102
 
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.3
8
- Version: 1.1.5
9
- Stable tag: 1.1.5
10
 
11
  == Description ==
12
  Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages.
@@ -38,7 +38,7 @@ This plugin follows the [standard WordPress installation method][]:
38
  Login to google analytics, go to the website profile which you want, edit and go to check status and there you see your google analytics code. You just want to copy your google analytics ID which will look like this UA-0000000-0 (but will be your own unique id.)
39
 
40
  = Does it track logged in users? =
41
- No, you wouldn't want to track logged in users because this would give you invalid results, everything else is tracked.
42
 
43
  = What versions does it work on? =
44
  It should work from 2.6 upwards.. Has been tested on all current versions and is working.
@@ -47,6 +47,9 @@ 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.5 =
51
  * Add settings in the extensions page (Thanks to Vladimir Pavlikov)
52
  * Add Russian Translation (Thanks to Vladimir Pavlikov)
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.2.1
8
+ Version: 1.1.6
9
+ Stable tag: 1.1.6
10
 
11
  == Description ==
12
  Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages.
38
  Login to google analytics, go to the website profile which you want, edit and go to check status and there you see your google analytics code. You just want to copy your google analytics ID which will look like this UA-0000000-0 (but will be your own unique id.)
39
 
40
  = Does it track logged in users? =
41
+ Yes, except for admin users. Option to choose who is being tracked will be added in the next version of the plugin.
42
 
43
  = What versions does it work on? =
44
  It should work from 2.6 upwards.. Has been tested on all current versions and is working.
47
  1. Screenshot Simple Google Analytics Admin Page
48
 
49
  == Changelog ==
50
+ = version 1.1.6 =
51
+ * Code is not showing only when logged as Admin.
52
+ * Add option to select where you want to place the code (Header or Footer)
53
  = version 1.1.5 =
54
  * Add settings in the extensions page (Thanks to Vladimir Pavlikov)
55
  * Add Russian Translation (Thanks to Vladimir Pavlikov)
simple_google_analytics.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Simple Google Analytics
4
  Plugin URI: http://www.arobase62.fr/2011/03/23/simple-google-analytics/
5
  Description: A simple Plugin to add Analytics code on your pages. You simply enter your ID, you choose if you are on a sub-domain and add your domain name.
6
- Version: 1.1.5
7
  Author: Jerome Meyer
8
  Author URI: http://www.arobase62.fr
9
  */
@@ -32,7 +32,7 @@ Author URI: http://www.arobase62.fr
32
  add_action( 'admin_init', 'SGA_register_mysettings') ;
33
  }
34
 
35
- // Ajoute un lien param�tre dans la page extensions
36
  function SGA_plugin_action_links($links) {
37
  $link = '<a href="' . menu_page_url ( plugin_basename(__FILE__) , false ) . '">' . __('Settings') .'</a>' ;
38
  array_unshift($links, $link) ;
@@ -45,6 +45,7 @@ Author URI: http://www.arobase62.fr
45
  register_setting('sga-settings-group', 'sitespeed_setting') ;
46
  register_setting('sga-settings-group', 'multidomain_setting') ;
47
  register_setting('sga-settings-group', 'multidomain_domain') ;
 
48
  }
49
 
50
  // Affichage de la page de parametres
@@ -89,6 +90,15 @@ Author URI: http://www.arobase62.fr
89
  <?php settings_fields('sga-settings-group'); ?>
90
 
91
  <table class="form-table">
 
 
 
 
 
 
 
 
 
92
  <tr valign="top">
93
  <th scope="row" style="width: 300px; text-align:right;"><?php _e('Google Analytics ID', 'simple_google_analytics') ; ?></th>
94
  <td>
@@ -98,7 +108,7 @@ Author URI: http://www.arobase62.fr
98
  <tr>
99
  <th scope="row" style="text-align:right;" valign="top"><?php _e('Add Site Speed to the tracking code ?', 'simple_google_analytics') ; ?></th>
100
  <td>
101
- <select id="sitespeed" name="sitespeed_setting">
102
  <option value="0" <?php selected(get_option('sitespeed_setting'), 0) ; ?>><?php _e('No', 'simple_google_analytics') ; ?></option>
103
  <option value="1" <?php selected(get_option('sitespeed_setting'), 1) ; ?>><?php _e('Yes', 'simple_google_analytics') ; ?></option>
104
  </select>
@@ -107,7 +117,7 @@ Author URI: http://www.arobase62.fr
107
  <tr>
108
  <th scope="row" style="text-align:right;" valign="top"><?php _e('Is your blog a sub-domain ? (Google Analytics Setting)', 'simple_google_analytics') ; ?></th>
109
  <td>
110
- <select id="multisetting" name="multidomain_setting">
111
  <option value="0" <?php selected(get_option('multidomain_setting'), 0) ; ?>><?php _e('No', 'simple_google_analytics') ; ?></option>
112
  <option value="1" <?php selected(get_option('multidomain_setting'), 1) ; ?>><?php _e('Yes', 'simple_google_analytics') ; ?></option>
113
  </select>
@@ -151,12 +161,13 @@ Author URI: http://www.arobase62.fr
151
  }
152
 
153
  // Action a lancer lorsque l'on affiche le footer de chaque page
154
- add_action('wp_footer', 'SGA_function');
 
155
 
156
  // Le texte a rajouter dans le footer
157
  function SGA_function() {
158
  // Seulement si l'utilisateur n'est pas log !
159
- if ( !is_user_logged_in() ) { ?>
160
 
161
  <script type="text/javascript">
162
 
3
  Plugin Name: Simple Google Analytics
4
  Plugin URI: http://www.arobase62.fr/2011/03/23/simple-google-analytics/
5
  Description: A simple Plugin to add Analytics code on your pages. You simply enter your ID, you choose if you are on a sub-domain and add your domain name.
6
+ Version: 1.1.6
7
  Author: Jerome Meyer
8
  Author URI: http://www.arobase62.fr
9
  */
32
  add_action( 'admin_init', 'SGA_register_mysettings') ;
33
  }
34
 
35
+ // Ajoute un lien param�tre dans la page extensions
36
  function SGA_plugin_action_links($links) {
37
  $link = '<a href="' . menu_page_url ( plugin_basename(__FILE__) , false ) . '">' . __('Settings') .'</a>' ;
38
  array_unshift($links, $link) ;
45
  register_setting('sga-settings-group', 'sitespeed_setting') ;
46
  register_setting('sga-settings-group', 'multidomain_setting') ;
47
  register_setting('sga-settings-group', 'multidomain_domain') ;
48
+ register_setting('sga-settings-group', 'sga_code_location') ;
49
  }
50
 
51
  // Affichage de la page de parametres
90
  <?php settings_fields('sga-settings-group'); ?>
91
 
92
  <table class="form-table">
93
+ <tr valign="top">
94
+ <th scope="row" style="text-align:right;"><?php _e('Where to put the code ?', 'simple_google_analytics') ; ?></th>
95
+ <td>
96
+ <select id="sga_code_location" name="sga_code_location" style="width:80px;">
97
+ <option value="head" <?php selected(get_option('sga_code_location'), 'header') ; ?>><?php _e('Header', 'simple_google_analytics') ; ?></option>
98
+ <option value="footer" <?php selected(get_option('sga_code_location'), 'footer') ; ?>><?php _e('Footer', 'simple_google_analytics') ; ?></option>
99
+ </select>
100
+ </td>
101
+ </tr>
102
  <tr valign="top">
103
  <th scope="row" style="width: 300px; text-align:right;"><?php _e('Google Analytics ID', 'simple_google_analytics') ; ?></th>
104
  <td>
108
  <tr>
109
  <th scope="row" style="text-align:right;" valign="top"><?php _e('Add Site Speed to the tracking code ?', 'simple_google_analytics') ; ?></th>
110
  <td>
111
+ <select id="sitespeed" name="sitespeed_setting" style="width:60px;">
112
  <option value="0" <?php selected(get_option('sitespeed_setting'), 0) ; ?>><?php _e('No', 'simple_google_analytics') ; ?></option>
113
  <option value="1" <?php selected(get_option('sitespeed_setting'), 1) ; ?>><?php _e('Yes', 'simple_google_analytics') ; ?></option>
114
  </select>
117
  <tr>
118
  <th scope="row" style="text-align:right;" valign="top"><?php _e('Is your blog a sub-domain ? (Google Analytics Setting)', 'simple_google_analytics') ; ?></th>
119
  <td>
120
+ <select id="multisetting" name="multidomain_setting" style="width:60px;">
121
  <option value="0" <?php selected(get_option('multidomain_setting'), 0) ; ?>><?php _e('No', 'simple_google_analytics') ; ?></option>
122
  <option value="1" <?php selected(get_option('multidomain_setting'), 1) ; ?>><?php _e('Yes', 'simple_google_analytics') ; ?></option>
123
  </select>
161
  }
162
 
163
  // Action a lancer lorsque l'on affiche le footer de chaque page
164
+ $action = 'wp_' . get_option('sga_code_location') ;
165
+ add_action($action, 'SGA_function');
166
 
167
  // Le texte a rajouter dans le footer
168
  function SGA_function() {
169
  // Seulement si l'utilisateur n'est pas log !
170
+ if ( !is_admin() ) { ?>
171
 
172
  <script type="text/javascript">
173