Simple Google Analytics - Version 1.1.5

Version Description

Download this release

Release Info

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

Code changes from version 1.1.4 to 1.1.5

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-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,73 +14,77 @@ msgstr ""
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"
24
 
25
- #: simple_google_analytics.php:72
26
  msgid "Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages."
27
  msgstr "Simple Google Analytics vous permet d'ajouter simplement votre code Google Analytics dans toutes vos pages"
28
 
29
- #: simple_google_analytics.php:74
30
  msgid "Just add your ID, choose if you are on a sub-domain (setting in Google Analytics code), and enter the domain."
31
  msgstr "Ajoutez juste votre ID, choisissez si vous êtes sur un sous-domaine (paramètre dans le code Google Analytics), et entrez le domaine."
32
 
33
- #: simple_google_analytics.php:76
34
  msgid "That's all, you're ready to go."
35
  msgstr "C'est tout, vous pouvez continuer."
36
 
37
- #: simple_google_analytics.php:85
38
  msgid "Google Analytics ID"
39
  msgstr "ID Google Analytics"
40
 
41
- #: simple_google_analytics.php:87
42
  msgid "Example : UA-0000000-0."
43
  msgstr "Exemple : UA-0000000-0."
44
 
45
- #: simple_google_analytics.php:91
46
  msgid "Add Site Speed to the tracking code ?"
47
  msgstr "Ajouter la vitesse du site au code de suivi ?"
48
 
49
- #: simple_google_analytics.php:94
50
- #: simple_google_analytics.php:103
51
  msgid "No"
52
  msgstr "Non"
53
 
54
- #: simple_google_analytics.php:95
55
- #: simple_google_analytics.php:104
56
  msgid "Yes"
57
  msgstr "Oui"
58
 
59
- #: simple_google_analytics.php:100
60
  msgid "Is your blog a sub-domain ? (Google Analytics Setting)"
61
  msgstr "Est-ce que le blog est un sous-domaine ? (Paramètre Google Analytics)"
62
 
63
- #: simple_google_analytics.php:109
64
  msgid "Domain"
65
  msgstr "Domaine"
66
 
67
- #: simple_google_analytics.php:111
68
  msgid "Example : domain.com"
69
  msgstr "Exemple : domaine.com"
70
 
71
- #: simple_google_analytics.php:117
72
  msgid "Save Changes"
73
  msgstr "Sauvegarder les changements"
74
 
75
- #: simple_google_analytics.php:123
76
  msgid "If you need any support go to the plugin homepage and contact me !"
77
  msgstr "Si vous avez des questions, n'hésitez pas à aller sur la page de l'extension et à me contacter !"
78
 
79
- #: simple_google_analytics.php:127
80
  msgid "This plugin is largely inspired by the Google Analytics Input plugin from Roy Duff ( http://wpable.com )."
81
  msgstr "Cette extension est largement inspirée par l'extension Google Analytics Input de Roy Duff ( http://wpable.com )."
82
 
83
- #: simple_google_analytics.php:129
84
  msgid "If you like this plugin, you can Donate :)"
85
  msgstr "Si vous aimé cette extension, vous pouvez me faire un don :)"
86
 
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"
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
 
languages/simple_google_analytics-ru_RU.mo ADDED
Binary file
languages/simple_google_analytics-ru_RU.po ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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:23+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 "Настройки Simple Google Analytics"
20
+
21
+ #: simple_google_analytics.php:39
22
+ msgid "Settings"
23
+ msgstr "Настройки"
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 дает Вам возможность с легкостью добавить код Google Analytics на все Ваши страницы."
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 "Просто добавьте Ваш ID, укажите, используете ли Вы поддомен (настройка в коде Google Analytics), и введите домен."
36
+
37
+ #: simple_google_analytics.php:86
38
+ msgid "That's all, you're ready to go."
39
+ msgstr "Вот и все, готово."
40
+
41
+ #: simple_google_analytics.php:95
42
+ msgid "Google Analytics ID"
43
+ msgstr "Google Analytics ID"
44
+
45
+ #: simple_google_analytics.php:97
46
+ msgid "Example : UA-0000000-0."
47
+ msgstr "Пример : UA-0000000-0."
48
+
49
+ #: simple_google_analytics.php:101
50
+ msgid "Add Site Speed to the tracking code ?"
51
+ msgstr "Отслеживать скорость загрузки страниц?"
52
+
53
+ #: simple_google_analytics.php:104
54
+ #: simple_google_analytics.php:113
55
+ msgid "No"
56
+ msgstr "Нет"
57
+
58
+ #: simple_google_analytics.php:105
59
+ #: simple_google_analytics.php:114
60
+ msgid "Yes"
61
+ msgstr "Да"
62
+
63
+ #: simple_google_analytics.php:110
64
+ msgid "Is your blog a sub-domain ? (Google Analytics Setting)"
65
+ msgstr "Ваш блог находится на поддомене? (Настройка Google Analytics)"
66
+
67
+ #: simple_google_analytics.php:119
68
+ msgid "Domain"
69
+ msgstr "Домен"
70
+
71
+ #: simple_google_analytics.php:121
72
+ msgid "Example : domain.com"
73
+ msgstr "Пример : domaine.com"
74
+
75
+ #: simple_google_analytics.php:127
76
+ msgid "Save Changes"
77
+ msgstr "Сохранить изменения"
78
+
79
+ #: simple_google_analytics.php:133
80
+ msgid "If you need any support go to the plugin homepage and contact me !"
81
+ msgstr "Если Вам нужна помощь, пройдите на домашнюю страницу плагина и свяжитесь со мной!"
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 "Создание данного плагина во многом навеяно плагином Google Analytics Input by Roy Duff ( http://wpable.com )."
86
+
87
+ #: simple_google_analytics.php:139
88
+ msgid "If you like this plugin, you can Donate :)"
89
+ msgstr "Если Вам понравился данный плагин, Вы можете сделать пожертвование :)"
90
+
readme.txt CHANGED
@@ -5,8 +5,8 @@ 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.4
9
- Stable tag: 1.1.4
10
 
11
  == Description ==
12
  Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages.
@@ -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.4 =
51
  * Version 1.1.3 doesn't shows in the repository...
52
  = version 1.1.3 =
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.
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)
53
  = version 1.1.4 =
54
  * Version 1.1.3 doesn't shows in the repository...
55
  = version 1.1.3 =
simple_google_analytics.php CHANGED
@@ -3,12 +3,10 @@
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.4
7
  Author: Jerome Meyer
8
  Author URI: http://www.arobase62.fr
9
  */
10
- ?>
11
- <?php
12
 
13
  // On lance la traduction
14
  add_action('init', 'SGA_launch_i18n') ;
@@ -16,6 +14,9 @@ Author URI: http://www.arobase62.fr
16
  // On lance la fonction 'sga_menu' lorsque le menu est charge
17
  add_action('admin_menu', 'SGA_menu') ;
18
 
 
 
 
19
 
20
  // Fonction de traduction
21
  function SGA_launch_i18n() {
@@ -29,7 +30,14 @@ Author URI: http://www.arobase62.fr
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
- }
 
 
 
 
 
 
 
33
 
34
  // On enregistre les parametres specifiques au plugin
35
  function SGA_register_mysettings() {
@@ -121,9 +129,9 @@ Author URI: http://www.arobase62.fr
121
  <p>
122
  <?php
123
  _e('If you need any support go to the plugin homepage and contact me !', 'simple_google_analytics') ;
124
- echo '<br/><br/>' ;
125
- echo '<a href="http://www.arobase62.fr/2011/03/23/simple-google-analytics/" target="_blank">http://www.arobase62.fr/2011/03/23/simple-google-analytics/</a>' ;
126
- echo '<br/><br/>' ;
127
  _e('This plugin is largely inspired by the Google Analytics Input plugin from Roy Duff ( http://wpable.com ).', 'simple_google_analytics') ;
128
  echo '<br/><br/>' ;
129
  _e('If you like this plugin, you can Donate :)', 'simple_google_analytics') ;
@@ -156,13 +164,10 @@ Author URI: http://www.arobase62.fr
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
 
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
  */
 
 
10
 
11
  // On lance la traduction
12
  add_action('init', 'SGA_launch_i18n') ;
14
  // On lance la fonction 'sga_menu' lorsque le menu est charge
15
  add_action('admin_menu', 'SGA_menu') ;
16
 
17
+ // On ajoute le settings dans la liste des plugins
18
+ add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'SGA_plugin_action_links') ;
19
+
20
 
21
  // Fonction de traduction
22
  function SGA_launch_i18n() {
30
  add_options_page('Simple Google Analytics', __('Simple Google Analytics Settings'), 'administrator', __FILE__, 'SGA_settings') ;
31
  // On lance la fonction au moment ou l'on accede a la zone d'admin
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) ;
39
+ return $links ;
40
+ }
41
 
42
  // On enregistre les parametres specifiques au plugin
43
  function SGA_register_mysettings() {
129
  <p>
130
  <?php
131
  _e('If you need any support go to the plugin homepage and contact me !', 'simple_google_analytics') ;
132
+ echo '<br/><br/>' ,
133
+ '<a href="http://www.arobase62.fr/2011/03/23/simple-google-analytics/" target="_blank">http://www.arobase62.fr/2011/03/23/simple-google-analytics/</a>' ,
134
+ '<br/><br/>' ;
135
  _e('This plugin is largely inspired by the Google Analytics Input plugin from Roy Duff ( http://wpable.com ).', 'simple_google_analytics') ;
136
  echo '<br/><br/>' ;
137
  _e('If you like this plugin, you can Donate :)', 'simple_google_analytics') ;
164
  _gaq.push(
165
  ['_setAccount', "<?php echo get_option('analytics_id'); ?>"]
166
 
 
167
  <?php if (get_option('multidomain_setting') == 1) { ?>,['_setDomainName', "<?php echo get_option('multidomain_domain'); ?>"]<?php } ?>
168
 
 
169
  <?php if (get_option('sitespeed_setting') == 1) { ?>,['_trackPageLoadTime']<?php } ?>
170
 
 
171
  ,['_trackPageview']
172
  );
173