Version Description
Download this release
Release Info
Developer | JeromeMeyer62 |
Plugin | Simple Google Analytics |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
- languages/simple_google_analytics-fr_FR.mo +0 -0
- languages/simple_google_analytics-fr_FR.po +25 -19
- readme.txt +4 -2
- simple_google_analytics.php +15 -16
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-
|
6 |
-
"PO-Revision-Date: 2011-
|
7 |
"Last-Translator: Jerome Meyer <jerome@hollywoud.net>\n"
|
8 |
"Language-Team: JeromeMeyer62 <jerome@hollywoud.net>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -14,63 +14,69 @@ msgstr ""
|
|
14 |
"X-Poedit-Language: French\n"
|
15 |
"X-Poedit-SearchPath-0: .\n"
|
16 |
|
17 |
-
#: simple_google_analytics.php:
|
18 |
msgid "Simple Google Analytics."
|
19 |
msgstr "Simple Google Analytics"
|
20 |
|
21 |
-
#: simple_google_analytics.php:
|
22 |
msgid "Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages."
|
23 |
msgstr "Simple Google Analytics vous permet d'ajouter simplement votre code Google Analytics dans toutes vos pages"
|
24 |
|
25 |
-
#: simple_google_analytics.php:
|
26 |
msgid "Just add your ID, choose if you are on a sub-domain (setting in Google Analytics code), and enter the domain."
|
27 |
msgstr "Ajoutez juste votre ID, choisissez si vous êtes sur un sous-domaine (paramètre dans le code Google Analytics), et entrez le domaine."
|
28 |
|
29 |
-
#: simple_google_analytics.php:
|
30 |
msgid "That's all, you're ready to go."
|
31 |
msgstr "C'est tout, vous pouvez continuer."
|
32 |
|
33 |
-
#: simple_google_analytics.php:
|
34 |
msgid "Google Analytics ID"
|
35 |
msgstr "ID Google Analytics"
|
36 |
|
37 |
-
#: simple_google_analytics.php:
|
38 |
msgid "Example : UA-0000000-0."
|
39 |
msgstr "Exemple : UA-0000000-0."
|
40 |
|
41 |
-
#: simple_google_analytics.php:
|
42 |
-
msgid "
|
43 |
-
msgstr "
|
44 |
|
45 |
-
#: simple_google_analytics.php:
|
|
|
46 |
msgid "No"
|
47 |
msgstr "Non"
|
48 |
|
49 |
-
#: simple_google_analytics.php:
|
|
|
50 |
msgid "Yes"
|
51 |
msgstr "Oui"
|
52 |
|
53 |
-
#: simple_google_analytics.php:
|
|
|
|
|
|
|
|
|
54 |
msgid "Domain"
|
55 |
msgstr "Domaine"
|
56 |
|
57 |
-
#: simple_google_analytics.php:
|
58 |
msgid "Example : domain.com"
|
59 |
msgstr "Exemple : domaine.com"
|
60 |
|
61 |
-
#: simple_google_analytics.php:
|
62 |
msgid "Save Changes"
|
63 |
msgstr "Sauvegarder les changements"
|
64 |
|
65 |
-
#: simple_google_analytics.php:
|
66 |
msgid "If you need any support go to the plugin homepage and contact me !"
|
67 |
msgstr "Si vous avez des questions, n'hésitez pas à aller sur la page de l'extension et à me contacter !"
|
68 |
|
69 |
-
#: simple_google_analytics.php:
|
70 |
msgid "This plugin is largely inspired by the Google Analytics Input plugin from Roy Duff ( http://wpable.com )."
|
71 |
msgstr "Cette extension est largement inspirée par l'extension Google Analytics Input de Roy Duff ( http://wpable.com )."
|
72 |
|
73 |
-
#: simple_google_analytics.php:
|
74 |
msgid "If you like this plugin, you can Donate :)"
|
75 |
msgstr "Si vous aimé cette extension, vous pouvez me faire un don :)"
|
76 |
|
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 |
"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"
|
20 |
|
21 |
+
#: simple_google_analytics.php:72
|
22 |
msgid "Simple Google Analytics allows you to easilly add your Google Analytics code on all your pages."
|
23 |
msgstr "Simple Google Analytics vous permet d'ajouter simplement votre code Google Analytics dans toutes vos pages"
|
24 |
|
25 |
+
#: simple_google_analytics.php:74
|
26 |
msgid "Just add your ID, choose if you are on a sub-domain (setting in Google Analytics code), and enter the domain."
|
27 |
msgstr "Ajoutez juste votre ID, choisissez si vous êtes sur un sous-domaine (paramètre dans le code Google Analytics), et entrez le domaine."
|
28 |
|
29 |
+
#: simple_google_analytics.php:76
|
30 |
msgid "That's all, you're ready to go."
|
31 |
msgstr "C'est tout, vous pouvez continuer."
|
32 |
|
33 |
+
#: simple_google_analytics.php:85
|
34 |
msgid "Google Analytics ID"
|
35 |
msgstr "ID Google Analytics"
|
36 |
|
37 |
+
#: simple_google_analytics.php:87
|
38 |
msgid "Example : UA-0000000-0."
|
39 |
msgstr "Exemple : UA-0000000-0."
|
40 |
|
41 |
+
#: simple_google_analytics.php:91
|
42 |
+
msgid "Add Site Speed to the tracking code ?"
|
43 |
+
msgstr "Ajouter la vitesse du site au code de suivi ?"
|
44 |
|
45 |
+
#: simple_google_analytics.php:94
|
46 |
+
#: simple_google_analytics.php:103
|
47 |
msgid "No"
|
48 |
msgstr "Non"
|
49 |
|
50 |
+
#: simple_google_analytics.php:95
|
51 |
+
#: simple_google_analytics.php:104
|
52 |
msgid "Yes"
|
53 |
msgstr "Oui"
|
54 |
|
55 |
+
#: simple_google_analytics.php:100
|
56 |
+
msgid "Is your blog a sub-domain ? (Google Analytics Setting)"
|
57 |
+
msgstr "Est-ce que le blog est un sous-domaine ? (Paramètre Google Analytics)"
|
58 |
+
|
59 |
+
#: simple_google_analytics.php:109
|
60 |
msgid "Domain"
|
61 |
msgstr "Domaine"
|
62 |
|
63 |
+
#: simple_google_analytics.php:111
|
64 |
msgid "Example : domain.com"
|
65 |
msgstr "Exemple : domaine.com"
|
66 |
|
67 |
+
#: simple_google_analytics.php:117
|
68 |
msgid "Save Changes"
|
69 |
msgstr "Sauvegarder les changements"
|
70 |
|
71 |
+
#: simple_google_analytics.php:123
|
72 |
msgid "If you need any support go to the plugin homepage and contact me !"
|
73 |
msgstr "Si vous avez des questions, n'hésitez pas à aller sur la page de l'extension et à me contacter !"
|
74 |
|
75 |
+
#: simple_google_analytics.php:127
|
76 |
msgid "This plugin is largely inspired by the Google Analytics Input plugin from Roy Duff ( http://wpable.com )."
|
77 |
msgstr "Cette extension est largement inspirée par l'extension Google Analytics Input de Roy Duff ( http://wpable.com )."
|
78 |
|
79 |
+
#: simple_google_analytics.php:129
|
80 |
msgid "If you like this plugin, you can Donate :)"
|
81 |
msgstr "Si vous aimé cette extension, vous pouvez me faire un don :)"
|
82 |
|
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.2
|
8 |
-
Version: 1.1.
|
9 |
-
Stable tag: 1.1.
|
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.1 =
|
51 |
* Fixed annoying bug
|
52 |
= version 1.1.0 =
|
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 |
1. Screenshot Simple Google Analytics Admin Page
|
48 |
|
49 |
== Changelog ==
|
50 |
+
= version 1.1.2 =
|
51 |
+
* French Translation Bug
|
52 |
= version 1.1.1 =
|
53 |
* Fixed annoying bug
|
54 |
= version 1.1.0 =
|
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.
|
7 |
Author: Jerome Meyer
|
8 |
Author URI: http://www.arobase62.fr
|
9 |
*/
|
@@ -11,22 +11,22 @@ Author URI: http://www.arobase62.fr
|
|
11 |
<?php
|
12 |
|
13 |
// On lance la traduction
|
14 |
-
add_action('init', '
|
15 |
|
16 |
// On lance la fonction 'sga_menu' lorsque le menu est charge
|
17 |
-
add_action('admin_menu', '
|
18 |
|
19 |
|
20 |
// Fonction de traduction
|
21 |
-
function
|
22 |
$lngPath = basename(dirname(__FILE__)) . '/languages' ;
|
23 |
load_plugin_textdomain('simple_google_analytics', false, $lngPath) ;
|
24 |
}
|
25 |
|
26 |
// Ajoute un sous-menu aux reglages
|
27 |
-
function
|
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__, '
|
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 |
}
|
@@ -40,7 +40,7 @@ Author URI: http://www.arobase62.fr
|
|
40 |
}
|
41 |
|
42 |
// Affichage de la page de parametres
|
43 |
-
function
|
44 |
|
45 |
?>
|
46 |
<div class="wrap">
|
@@ -143,11 +143,11 @@ Author URI: http://www.arobase62.fr
|
|
143 |
}
|
144 |
|
145 |
// Action a lancer lorsque l'on affiche le footer de chaque page
|
146 |
-
add_action('wp_footer', '
|
147 |
|
148 |
// Le texte a rajouter dans le footer
|
149 |
-
function
|
150 |
-
// Seulement si l'utilisateur n'est pas
|
151 |
if ( !is_user_logged_in() ) { ?>
|
152 |
|
153 |
<script type="text/javascript">
|
@@ -155,13 +155,12 @@ Author URI: http://www.arobase62.fr
|
|
155 |
var _gaq = _gaq || [];
|
156 |
_gaq.push(['_setAccount', "<?php echo get_option('analytics_id'); ?>"]);
|
157 |
|
158 |
-
|
159 |
-
|
160 |
-
<?php } ?>
|
161 |
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
_gaq.push(['_trackPageview']);
|
166 |
|
167 |
(function() {
|
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.2
|
7 |
Author: Jerome Meyer
|
8 |
Author URI: http://www.arobase62.fr
|
9 |
*/
|
11 |
<?php
|
12 |
|
13 |
// On lance la traduction
|
14 |
+
add_action('init', 'SGA_launch_i18n') ;
|
15 |
|
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() {
|
22 |
$lngPath = basename(dirname(__FILE__)) . '/languages' ;
|
23 |
load_plugin_textdomain('simple_google_analytics', false, $lngPath) ;
|
24 |
}
|
25 |
|
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 |
}
|
40 |
}
|
41 |
|
42 |
// Affichage de la page de parametres
|
43 |
+
function SGA_settings() {
|
44 |
|
45 |
?>
|
46 |
<div class="wrap">
|
143 |
}
|
144 |
|
145 |
// Action a lancer lorsque l'on affiche le footer de chaque page
|
146 |
+
add_action('wp_footer', 'SGA_function');
|
147 |
|
148 |
// Le texte a rajouter dans le footer
|
149 |
+
function SGA_function() {
|
150 |
+
// Seulement si l'utilisateur n'est pas log !
|
151 |
if ( !is_user_logged_in() ) { ?>
|
152 |
|
153 |
<script type="text/javascript">
|
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() {
|