Yandex Metrica - Version 1.4

Version Description

  • Text Domain changed
    • Nonces added to settings page
    • Wrong option name fixed. Props romapad
Download this release

Release Info

Developer m_uysl
Plugin Icon 128x128 Yandex Metrica
Version 1.4
Comparing to
See all releases

Code changes from version 1.3 to 1.4

README.md CHANGED
@@ -4,8 +4,10 @@ Contributors: m_uysl
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.0
6
  Tested up to: 4.6
7
- Stable tag: 1.3
8
  License: GPLv2 (or later)
 
 
9
 
10
  Easy way to use Yandex Metrica in your WordPress site.
11
 
@@ -17,9 +19,6 @@ Best Metrica plugin for the using Yandex Metrica in your WordPress site.
17
 
18
  Metrica is an analytics tool like as google analytics.If you didn't hear metrica yet, you can [check official metrica](http://metrica.yandex.com/) page.
19
 
20
- ### Что такое Метрика ###
21
-
22
- Яндекс Метрика - это система аналитики сайтов, так же как и Гугл Аналиткс. Вы можете посмотреть официальную страницу Яндекс Метрики (http://metrica.yandex.ru/)
23
 
24
  ### Features ###
25
 
@@ -30,15 +29,6 @@ Metrica is an analytics tool like as google analytics.If you didn't hear metrica
30
  - Basic mode ready! If you don't want to give API access, you can try basic mode.
31
  - i18n support: Completely translation ready!
32
 
33
- ### Особенности ###
34
-
35
- - Легкая настройка параметров отслеживания.
36
- - Отслеживание пользователей по ролям
37
- - Виджет в панели управления сайтом для графического отображения статистики, посещений сайтов, самых посещаемых страниц и т.д.
38
- - Доступ пользователей по ролям для просмотра виджета в панели управления
39
- - Доступен стандартный режим! Если Вы не хотите давать доступ по API, то Вы можете использовать обычный режим (вставка кода счетчика).
40
- - Поддержка локализации. Готовые переводы на английский, турецкий и русский языки.
41
-
42
 
43
  ### Translations ###
44
 
@@ -73,6 +63,11 @@ Extract the zip file and just drop the contents in the `wp-content/plugins/` dir
73
 
74
  ## Changelog ##
75
 
 
 
 
 
 
76
  ### 1.3 ###
77
  - Updated metrica tracking code
78
  - New hash tracking option added
@@ -112,19 +107,15 @@ Extract the zip file and just drop the contents in the `wp-content/plugins/` dir
112
  - Special thanks to Yandex Team for all support.
113
 
114
  #### 0.1.3 ####
115
-
116
  - Minor bug fixes
117
 
118
  #### 0.1.2 ####
119
-
120
  - Bug fix - about options
121
 
122
  #### 0.1.1 ####
123
-
124
  - bug fix - header output
125
 
126
  #### 0.1 ####
127
-
128
  - Initial release.
129
 
130
  ## Upgrade Notice ##
4
  Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
  Requires at least: 3.0
6
  Tested up to: 4.6
7
+ Stable tag: 1.4
8
  License: GPLv2 (or later)
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
 
12
  Easy way to use Yandex Metrica in your WordPress site.
13
 
19
 
20
  Metrica is an analytics tool like as google analytics.If you didn't hear metrica yet, you can [check official metrica](http://metrica.yandex.com/) page.
21
 
 
 
 
22
 
23
  ### Features ###
24
 
29
  - Basic mode ready! If you don't want to give API access, you can try basic mode.
30
  - i18n support: Completely translation ready!
31
 
 
 
 
 
 
 
 
 
 
32
 
33
  ### Translations ###
34
 
63
 
64
  ## Changelog ##
65
 
66
+ ### 1.4 ###
67
+ - Text Domain changed
68
+ - Nonces added to settings page
69
+ - Wrong option name fixed. Props [romapad](https://github.com/romapad)
70
+
71
  ### 1.3 ###
72
  - Updated metrica tracking code
73
  - New hash tracking option added
107
  - Special thanks to Yandex Team for all support.
108
 
109
  #### 0.1.3 ####
 
110
  - Minor bug fixes
111
 
112
  #### 0.1.2 ####
 
113
  - Bug fix - about options
114
 
115
  #### 0.1.1 ####
 
116
  - bug fix - header output
117
 
118
  #### 0.1 ####
 
119
  - Initial release.
120
 
121
  ## Upgrade Notice ##
languages/{yandex_metrica-ru_RU.mo → yandex-metrica-ru_RU.mo} RENAMED
Binary file
languages/{yandex_metrica-ru_RU.po → yandex-metrica-ru_RU.po} RENAMED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Yandex Metrica 1.x\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yandex-metrica\n"
5
- "POT-Creation-Date: 2015-11-22 17:06:56+00:00\n"
6
- "PO-Revision-Date: 2016-07-10 18:18+0200\n"
7
  "Last-Translator: Mustafa Uysal <mustafa@lettoblog.com>\n"
8
  "Language-Team: \n"
9
  "Language: ru\n"
@@ -157,32 +157,36 @@ msgstr[2] "%d посещений"
157
  msgid "Search Terms"
158
  msgstr "Поисковые запросы"
159
 
160
- #: templates/settings.php:8
 
 
 
 
161
  msgid "Successfully connected to Yandex Server"
162
  msgstr "Успешное соединение с сервером Яндекса"
163
 
164
- #: templates/settings.php:11
165
  msgid "Something went wrong. Please check your confirmation code!"
166
  msgstr "Что-то пошло не так! Пожалуйста, проверьте ваш код подтверждения!"
167
 
168
- #: templates/settings.php:33
169
  msgid "Options Saved!"
170
  msgstr "Параметры сохранены!"
171
 
172
- #: templates/settings.php:36
173
  msgid "Please enter a valid counter code!"
174
  msgstr "Пожалуйста, введите правильный код счетчика!"
175
 
176
- #: templates/settings.php:49
177
  msgid "All options cleared!"
178
  msgstr "Все параметры очищены!"
179
 
180
  #. Plugin Name of the plugin/theme
181
- #: templates/settings.php:59 yandex-metrica.php:85
182
  msgid "Yandex Metrica"
183
  msgstr "Яндекс Метрика"
184
 
185
- #: templates/settings.php:62
186
  msgid ""
187
  "You need sign in to Yandex and grant this plugin access to your Yandex "
188
  "Metrica account."
@@ -190,88 +194,88 @@ msgstr ""
190
  "Вам нужно войти в ваш аккаунт в Яндекс Метрике и дать плагину право доступа "
191
  "к вашему аккаунту."
192
 
193
- #: templates/settings.php:63
194
  msgid "https://oauth.yandex.com/"
195
  msgstr "https://oauth.yandex.ru/"
196
 
197
- #: templates/settings.php:64
198
  msgid "Click here to getting confirmation code"
199
  msgstr "Нажмите сюда для получения кода подтверждения"
200
 
201
- #: templates/settings.php:68
202
  msgid "Enter Confirmation code here"
203
  msgstr "Введите код подтверждения здесь"
204
 
205
- #: templates/settings.php:69 templates/settings.php:172
206
  msgid "Save"
207
  msgstr "Сохранить"
208
 
209
- #: templates/settings.php:73
210
  msgid "If you don't want to use API, you can use basic mode."
211
  msgstr ""
212
  "Если Вы не хотите использовать API, то Вы можете использовать обычный режим."
213
 
214
- #: templates/settings.php:74
215
  msgid "Basic Mode (Compatible with Backward)"
216
  msgstr "Обычный режим (обратно совместимый)"
217
 
218
- #: templates/settings.php:80
219
  msgid "Counter:"
220
  msgstr "Счётчик:"
221
 
222
- #: templates/settings.php:87
223
  msgid "Temporary, getting connectivity problem.!"
224
  msgstr "Временная проблема с подключением!"
225
 
226
- #: templates/settings.php:92
227
  msgid "Enter counter number"
228
  msgstr "Введите код счётчика"
229
 
230
- #: templates/settings.php:95
231
  msgid "Tracking Settings"
232
  msgstr "Настройки отслеживания"
233
 
234
- #: templates/settings.php:103
235
  msgid "Select tracking options"
236
  msgstr "Выберите настройки отслеживания"
237
 
238
- #: templates/settings.php:106
239
  msgid "Webvisor"
240
  msgstr "Вебвизор"
241
 
242
- #: templates/settings.php:108
243
  msgid "Track Clickmap"
244
  msgstr "Отслеживание карты кликов"
245
 
246
- #: templates/settings.php:110
247
  msgid "Track Links, social sharing, file requests..."
248
  msgstr "Отслеживание ссылок, социальных факторов, файловых запросов.."
249
 
250
- #: templates/settings.php:112
251
  msgid "Accurate Track Bounce"
252
  msgstr "Точный учет отказов"
253
 
254
- #. templates/settings.php:115
255
  msgid "Hash tracking in the browser's address bar"
256
  msgstr "Признак отслеживания хеша в адресной строке браузера"
257
 
258
- #: templates/settings.php:119
259
  msgid "Track logged in users"
260
  msgstr "Отслеживание авторизованных пользователей"
261
 
262
- #: templates/settings.php:123
263
  msgid "Yes"
264
  msgstr "Да"
265
 
266
- #: templates/settings.php:124
267
  msgid "No"
268
  msgstr "Нет"
269
 
270
- #: templates/settings.php:131
271
  msgid "User roles to not track"
272
  msgstr "Не отслеживаемые роли пользователей"
273
 
274
- #: templates/settings.php:144
275
  msgid ""
276
  "If a user is logged into with one of these roles, they won't track by "
277
  "metrica."
@@ -279,32 +283,32 @@ msgstr ""
279
  "Если у пользователя имеется одна из этих ролей, то он не будет отслеживаться "
280
  "Метрикой"
281
 
282
- #: templates/settings.php:150
283
  msgid "User roles to display dashboard widget"
284
  msgstr ""
285
  "Роли пользователей, для которых отображается виджет в панели управления."
286
 
287
- #: templates/settings.php:164
288
  msgid "Selected roles can display metrica statistic on the dashboard."
289
  msgstr "Выбранные роли могут показывать статистику Метрики в панели управленя."
290
 
291
- #: templates/settings.php:173
292
  msgid "Reset"
293
  msgstr "Сбросить"
294
 
295
- #: yandex-metrica.php:122
296
  msgid "You do not have sufficient permissions to access this page."
297
  msgstr "У вас недостаточно прав для доступа к этой странице."
298
 
299
- #: yandex-metrica.php:135 yandex-metrica.php:138
300
  msgid "Metrica Statistics"
301
  msgstr "Статистика Метрики"
302
 
303
- #: yandex-metrica.php:145
304
  msgid "Oh no! There is nothing to display. Here Are the Possible Causes"
305
  msgstr "Нет элементов для отображения. Возможно причина в следующем"
306
 
307
- #: yandex-metrica.php:146
308
  msgid ""
309
  "If selected a new counter (recently created), please give a few hours for "
310
  "verification. Please be patient."
@@ -312,7 +316,7 @@ msgstr ""
312
  "Если выбран новый счётчик (недавно созданный), будьте терпеливы и подождите "
313
  "несколько часов, пока пройдет процесс верификации."
314
 
315
- #: yandex-metrica.php:147
316
  msgid ""
317
  "Did you save options? You need to save options at least once after account "
318
  "confirmation."
@@ -320,11 +324,11 @@ msgstr ""
320
  "Вы сохранили параметры? Вам нужно сохранить нужные параметры хотя бы раз "
321
  "после подтверждения аккаунта."
322
 
323
- #: yandex-metrica.php:148
324
  msgid "Are you sure you selected the correct counter? Please confirm."
325
  msgstr "Вы уверены, что выбрали правильный счетчик? Пожалуйста, подтвердите."
326
 
327
- #: yandex-metrica.php:149
328
  msgid ""
329
  "Did you change your Yandex password? If changed, you need to re-authorize "
330
  "this plugin."
@@ -332,11 +336,11 @@ msgstr ""
332
  "Вы изменили пароль Яндекса? Если изменилось, то необходимо повторно "
333
  "разрешить этот плагин."
334
 
335
- #: yandex-metrica.php:150
336
  msgid "Temporary, connectivity problem!"
337
  msgstr "Временная проблема с подключением!"
338
 
339
- #: yandex-metrica.php:167
340
  msgid "View Full Report"
341
  msgstr "Посмотреть полный отчёт"
342
 
2
  msgstr ""
3
  "Project-Id-Version: Yandex Metrica 1.x\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yandex-metrica\n"
5
+ "POT-Creation-Date: 2016-09-20 21:59:12+00:00\n"
6
+ "PO-Revision-Date: 2016-09-21 01:01+0200\n"
7
  "Last-Translator: Mustafa Uysal <mustafa@lettoblog.com>\n"
8
  "Language-Team: \n"
9
  "Language: ru\n"
157
  msgid "Search Terms"
158
  msgstr "Поисковые запросы"
159
 
160
+ #: templates/settings.php:6
161
+ msgid "Cheatin, uh?"
162
+ msgstr ""
163
+
164
+ #: templates/settings.php:14
165
  msgid "Successfully connected to Yandex Server"
166
  msgstr "Успешное соединение с сервером Яндекса"
167
 
168
+ #: templates/settings.php:17
169
  msgid "Something went wrong. Please check your confirmation code!"
170
  msgstr "Что-то пошло не так! Пожалуйста, проверьте ваш код подтверждения!"
171
 
172
+ #: templates/settings.php:40
173
  msgid "Options Saved!"
174
  msgstr "Параметры сохранены!"
175
 
176
+ #: templates/settings.php:43
177
  msgid "Please enter a valid counter code!"
178
  msgstr "Пожалуйста, введите правильный код счетчика!"
179
 
180
+ #: templates/settings.php:56
181
  msgid "All options cleared!"
182
  msgstr "Все параметры очищены!"
183
 
184
  #. Plugin Name of the plugin/theme
185
+ #: templates/settings.php:67 yandex-metrica.php:89
186
  msgid "Yandex Metrica"
187
  msgstr "Яндекс Метрика"
188
 
189
+ #: templates/settings.php:70
190
  msgid ""
191
  "You need sign in to Yandex and grant this plugin access to your Yandex "
192
  "Metrica account."
194
  "Вам нужно войти в ваш аккаунт в Яндекс Метрике и дать плагину право доступа "
195
  "к вашему аккаунту."
196
 
197
+ #: templates/settings.php:71
198
  msgid "https://oauth.yandex.com/"
199
  msgstr "https://oauth.yandex.ru/"
200
 
201
+ #: templates/settings.php:72
202
  msgid "Click here to getting confirmation code"
203
  msgstr "Нажмите сюда для получения кода подтверждения"
204
 
205
+ #: templates/settings.php:76
206
  msgid "Enter Confirmation code here"
207
  msgstr "Введите код подтверждения здесь"
208
 
209
+ #: templates/settings.php:77 templates/settings.php:182
210
  msgid "Save"
211
  msgstr "Сохранить"
212
 
213
+ #: templates/settings.php:81
214
  msgid "If you don't want to use API, you can use basic mode."
215
  msgstr ""
216
  "Если Вы не хотите использовать API, то Вы можете использовать обычный режим."
217
 
218
+ #: templates/settings.php:82
219
  msgid "Basic Mode (Compatible with Backward)"
220
  msgstr "Обычный режим (обратно совместимый)"
221
 
222
+ #: templates/settings.php:88
223
  msgid "Counter:"
224
  msgstr "Счётчик:"
225
 
226
+ #: templates/settings.php:95
227
  msgid "Temporary, getting connectivity problem.!"
228
  msgstr "Временная проблема с подключением!"
229
 
230
+ #: templates/settings.php:100
231
  msgid "Enter counter number"
232
  msgstr "Введите код счётчика"
233
 
234
+ #: templates/settings.php:103
235
  msgid "Tracking Settings"
236
  msgstr "Настройки отслеживания"
237
 
238
+ #: templates/settings.php:111
239
  msgid "Select tracking options"
240
  msgstr "Выберите настройки отслеживания"
241
 
242
+ #: templates/settings.php:114
243
  msgid "Webvisor"
244
  msgstr "Вебвизор"
245
 
246
+ #: templates/settings.php:116
247
  msgid "Track Clickmap"
248
  msgstr "Отслеживание карты кликов"
249
 
250
+ #: templates/settings.php:118
251
  msgid "Track Links, social sharing, file requests..."
252
  msgstr "Отслеживание ссылок, социальных факторов, файловых запросов.."
253
 
254
+ #: templates/settings.php:120
255
  msgid "Accurate Track Bounce"
256
  msgstr "Точный учет отказов"
257
 
258
+ #: templates/settings.php:122
259
  msgid "Hash tracking in the browser's address bar"
260
  msgstr "Признак отслеживания хеша в адресной строке браузера"
261
 
262
+ #: templates/settings.php:129
263
  msgid "Track logged in users"
264
  msgstr "Отслеживание авторизованных пользователей"
265
 
266
+ #: templates/settings.php:133
267
  msgid "Yes"
268
  msgstr "Да"
269
 
270
+ #: templates/settings.php:134
271
  msgid "No"
272
  msgstr "Нет"
273
 
274
+ #: templates/settings.php:141
275
  msgid "User roles to not track"
276
  msgstr "Не отслеживаемые роли пользователей"
277
 
278
+ #: templates/settings.php:154
279
  msgid ""
280
  "If a user is logged into with one of these roles, they won't track by "
281
  "metrica."
283
  "Если у пользователя имеется одна из этих ролей, то он не будет отслеживаться "
284
  "Метрикой"
285
 
286
+ #: templates/settings.php:160
287
  msgid "User roles to display dashboard widget"
288
  msgstr ""
289
  "Роли пользователей, для которых отображается виджет в панели управления."
290
 
291
+ #: templates/settings.php:174
292
  msgid "Selected roles can display metrica statistic on the dashboard."
293
  msgstr "Выбранные роли могут показывать статистику Метрики в панели управленя."
294
 
295
+ #: templates/settings.php:183
296
  msgid "Reset"
297
  msgstr "Сбросить"
298
 
299
+ #: yandex-metrica.php:126
300
  msgid "You do not have sufficient permissions to access this page."
301
  msgstr "У вас недостаточно прав для доступа к этой странице."
302
 
303
+ #: yandex-metrica.php:139 yandex-metrica.php:142
304
  msgid "Metrica Statistics"
305
  msgstr "Статистика Метрики"
306
 
307
+ #: yandex-metrica.php:149
308
  msgid "Oh no! There is nothing to display. Here Are the Possible Causes"
309
  msgstr "Нет элементов для отображения. Возможно причина в следующем"
310
 
311
+ #: yandex-metrica.php:150
312
  msgid ""
313
  "If selected a new counter (recently created), please give a few hours for "
314
  "verification. Please be patient."
316
  "Если выбран новый счётчик (недавно созданный), будьте терпеливы и подождите "
317
  "несколько часов, пока пройдет процесс верификации."
318
 
319
+ #: yandex-metrica.php:151
320
  msgid ""
321
  "Did you save options? You need to save options at least once after account "
322
  "confirmation."
324
  "Вы сохранили параметры? Вам нужно сохранить нужные параметры хотя бы раз "
325
  "после подтверждения аккаунта."
326
 
327
+ #: yandex-metrica.php:152
328
  msgid "Are you sure you selected the correct counter? Please confirm."
329
  msgstr "Вы уверены, что выбрали правильный счетчик? Пожалуйста, подтвердите."
330
 
331
+ #: yandex-metrica.php:153
332
  msgid ""
333
  "Did you change your Yandex password? If changed, you need to re-authorize "
334
  "this plugin."
336
  "Вы изменили пароль Яндекса? Если изменилось, то необходимо повторно "
337
  "разрешить этот плагин."
338
 
339
+ #: yandex-metrica.php:154
340
  msgid "Temporary, connectivity problem!"
341
  msgstr "Временная проблема с подключением!"
342
 
343
+ #: yandex-metrica.php:172
344
  msgid "View Full Report"
345
  msgstr "Посмотреть полный отчёт"
346
 
languages/yandex-metrica-tr_TR.mo ADDED
Binary file
languages/{yandex_metrica-tr_TR.po → yandex-metrica-tr_TR.po} RENAMED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Yandex Metrica 1.x\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yandex-metrica\n"
5
- "POT-Creation-Date: 2015-11-22 17:06:56+00:00\n"
6
- "PO-Revision-Date: 2016-07-10 18:18+0200\n"
7
  "Last-Translator: Mustafa Uysal <mustafa@lettoblog.com>\n"
8
  "Language-Team: \n"
9
  "Language: en\n"
@@ -154,33 +154,37 @@ msgstr[1] "%d Ziyaret"
154
  msgid "Search Terms"
155
  msgstr "En İyi Aramalar"
156
 
157
- #: templates/settings.php:8
 
 
 
 
158
  msgid "Successfully connected to Yandex Server"
159
  msgstr "Başarılı bir şekilde Yandex Servisine bağlanıldı."
160
 
161
- #: templates/settings.php:11
162
  msgid "Something went wrong. Please check your confirmation code!"
163
  msgstr ""
164
  "Olamaz! Bi' şeyler ters gitti! Doğrulama kodunu kontrol edebilir misiniz?"
165
 
166
- #: templates/settings.php:33
167
  msgid "Options Saved!"
168
  msgstr "Ayarlar Kaydedildi!"
169
 
170
- #: templates/settings.php:36
171
  msgid "Please enter a valid counter code!"
172
  msgstr "Lütfen geçerli bir sayaç kodu giriniz!"
173
 
174
- #: templates/settings.php:49
175
  msgid "All options cleared!"
176
  msgstr "Tüm ayarlar sıfırlandı!"
177
 
178
  #. Plugin Name of the plugin/theme
179
- #: templates/settings.php:59 yandex-metrica.php:85
180
  msgid "Yandex Metrica"
181
  msgstr "Yandex Metrika"
182
 
183
- #: templates/settings.php:62
184
  msgid ""
185
  "You need sign in to Yandex and grant this plugin access to your Yandex "
186
  "Metrica account."
@@ -188,88 +192,88 @@ msgstr ""
188
  "Yandex hesabınıza giriş yapmanız ve bu eklentinin Yandex Metrica hesabınıza "
189
  "bağlanmasına izin vermelisiniz."
190
 
191
- #: templates/settings.php:63
192
  msgid "https://oauth.yandex.com/"
193
  msgstr ""
194
 
195
- #: templates/settings.php:64
196
  msgid "Click here to getting confirmation code"
197
  msgstr "Aktivasyon kodu almak için tıklayınız."
198
 
199
- #: templates/settings.php:68
200
  msgid "Enter Confirmation code here"
201
  msgstr "Doğrulama kodunu buraya giriniz"
202
 
203
- #: templates/settings.php:69 templates/settings.php:172
204
  msgid "Save"
205
  msgstr "Kaydet"
206
 
207
- #: templates/settings.php:73
208
  msgid "If you don't want to use API, you can use basic mode."
209
  msgstr ""
210
  "Eğer metrica API kullanmak istemiyorsanız, temel modu deneyebilirsiniz."
211
 
212
- #: templates/settings.php:74
213
  msgid "Basic Mode (Compatible with Backward)"
214
  msgstr "Temel Mod (Geri uyumlu)"
215
 
216
- #: templates/settings.php:80
217
  msgid "Counter:"
218
  msgstr "Sayaç:"
219
 
220
- #: templates/settings.php:87
221
  msgid "Temporary, getting connectivity problem.!"
222
  msgstr "API erişiminde geçici bir bağlantı sorunu var!"
223
 
224
- #: templates/settings.php:92
225
  msgid "Enter counter number"
226
  msgstr "Sayaç numarasını giriniz"
227
 
228
- #: templates/settings.php:95
229
  msgid "Tracking Settings"
230
  msgstr "Takip Ayarları"
231
 
232
- #: templates/settings.php:103
233
  msgid "Select tracking options"
234
  msgstr "Sayaç özellikleri"
235
 
236
- #: templates/settings.php:106
237
  msgid "Webvisor"
238
  msgstr "Webvisor"
239
 
240
- #: templates/settings.php:108
241
  msgid "Track Clickmap"
242
  msgstr "Tıklama Haritası"
243
 
244
- #: templates/settings.php:110
245
  msgid "Track Links, social sharing, file requests..."
246
  msgstr "Dış bağlantılar, dosya yüklemeleri ve Paylaş butonu raporu"
247
 
248
- #: templates/settings.php:112
249
  msgid "Accurate Track Bounce"
250
  msgstr "Hemen çıkma oranı"
251
 
252
- #. templates/settings.php:115
253
  msgid "Hash tracking in the browser's address bar"
254
  msgstr "Tarayıcının adres satırında hash'in takip edilmesi"
255
 
256
- #: templates/settings.php:119
257
  msgid "Track logged in users"
258
  msgstr "Giriş yapmış kullanıcıları dahil et"
259
 
260
- #: templates/settings.php:123
261
  msgid "Yes"
262
  msgstr "Evet"
263
 
264
- #: templates/settings.php:124
265
  msgid "No"
266
  msgstr "Hayır"
267
 
268
- #: templates/settings.php:131
269
  msgid "User roles to not track"
270
  msgstr "Takip edilmeyecek kullanıcı seviyesi"
271
 
272
- #: templates/settings.php:144
273
  msgid ""
274
  "If a user is logged into with one of these roles, they won't track by "
275
  "metrica."
@@ -277,33 +281,33 @@ msgstr ""
277
  "Bu yetkiye sahip kullanıcılar, metrica servisi tarafından takip "
278
  "edilmeyecektir."
279
 
280
- #: templates/settings.php:150
281
  msgid "User roles to display dashboard widget"
282
  msgstr "Yönetim panelinde istatistikleri görüntüleyebilecek kullanıcı seviyesi"
283
 
284
- #: templates/settings.php:164
285
  msgid "Selected roles can display metrica statistic on the dashboard."
286
  msgstr ""
287
  "Bu yetkiye sahip kullanıcılar, istatistikleri yönetim panelinden "
288
  "görüntüleyebilecektir."
289
 
290
- #: templates/settings.php:173
291
  msgid "Reset"
292
  msgstr "Sıfırla"
293
 
294
- #: yandex-metrica.php:122
295
  msgid "You do not have sufficient permissions to access this page."
296
  msgstr "Bu sayfayı görüntüleme yetkiniz bulunmamaktadır."
297
 
298
- #: yandex-metrica.php:135 yandex-metrica.php:138
299
  msgid "Metrica Statistics"
300
  msgstr "Metrika İstatistikleri"
301
 
302
- #: yandex-metrica.php:145
303
  msgid "Oh no! There is nothing to display. Here Are the Possible Causes"
304
  msgstr "Olamaz :( Yayınlayacak bi'şey bulamadık. Muhtemel sebepler şöyle;"
305
 
306
- #: yandex-metrica.php:146
307
  msgid ""
308
  "If selected a new counter (recently created), please give a few hours for "
309
  "verification. Please be patient."
@@ -311,7 +315,7 @@ msgstr ""
311
  "Seçtiğiniz sayacı yeni mi oluşturdunuz? Eğer yeni oluşturmuşsanız "
312
  "doğrulamamız için bir kaç saat bekleyiniz."
313
 
314
- #: yandex-metrica.php:147
315
  msgid ""
316
  "Did you save options? You need to save options at least once after account "
317
  "confirmation."
@@ -319,13 +323,13 @@ msgstr ""
319
  "Ayarları kaydettiniz mi? Api izni verdikten sonra en az bir kere ayarları "
320
  "kaydetmeniz gerekmektedir."
321
 
322
- #: yandex-metrica.php:148
323
  msgid "Are you sure you selected the correct counter? Please confirm."
324
  msgstr ""
325
  "Seçtiğiniz sayaç doğru mu? Lütfen sayacı yada sayacı kurarken belirttiğiniz "
326
  "internet adresinin doğru olduğundan emin olunuz."
327
 
328
- #: yandex-metrica.php:149
329
  msgid ""
330
  "Did you change your Yandex password? If changed, you need to re-authorize "
331
  "this plugin."
@@ -333,12 +337,12 @@ msgstr ""
333
  "Yandex şifrenizi mi değiştirdiniz? Şifre değişimlerinde eklenti yeniden "
334
  "yetkilendirilmelidir."
335
 
336
- #: yandex-metrica.php:150
337
  msgid "Temporary, connectivity problem!"
338
  msgstr ""
339
  "Düşük bir olasılıkta olsa, geçici bir bağlantı sorunu yaşamış olabilirsiniz."
340
 
341
- #: yandex-metrica.php:167
342
  msgid "View Full Report"
343
  msgstr "Tüm Raporu Görüntüle"
344
 
2
  msgstr ""
3
  "Project-Id-Version: Yandex Metrica 1.x\n"
4
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yandex-metrica\n"
5
+ "POT-Creation-Date: 2016-09-20 21:59:12+00:00\n"
6
+ "PO-Revision-Date: 2016-09-21 01:01+0200\n"
7
  "Last-Translator: Mustafa Uysal <mustafa@lettoblog.com>\n"
8
  "Language-Team: \n"
9
  "Language: en\n"
154
  msgid "Search Terms"
155
  msgstr "En İyi Aramalar"
156
 
157
+ #: templates/settings.php:6
158
+ msgid "Cheatin, uh?"
159
+ msgstr "Hile mi yapıyorsunuz?"
160
+
161
+ #: templates/settings.php:14
162
  msgid "Successfully connected to Yandex Server"
163
  msgstr "Başarılı bir şekilde Yandex Servisine bağlanıldı."
164
 
165
+ #: templates/settings.php:17
166
  msgid "Something went wrong. Please check your confirmation code!"
167
  msgstr ""
168
  "Olamaz! Bi' şeyler ters gitti! Doğrulama kodunu kontrol edebilir misiniz?"
169
 
170
+ #: templates/settings.php:40
171
  msgid "Options Saved!"
172
  msgstr "Ayarlar Kaydedildi!"
173
 
174
+ #: templates/settings.php:43
175
  msgid "Please enter a valid counter code!"
176
  msgstr "Lütfen geçerli bir sayaç kodu giriniz!"
177
 
178
+ #: templates/settings.php:56
179
  msgid "All options cleared!"
180
  msgstr "Tüm ayarlar sıfırlandı!"
181
 
182
  #. Plugin Name of the plugin/theme
183
+ #: templates/settings.php:67 yandex-metrica.php:89
184
  msgid "Yandex Metrica"
185
  msgstr "Yandex Metrika"
186
 
187
+ #: templates/settings.php:70
188
  msgid ""
189
  "You need sign in to Yandex and grant this plugin access to your Yandex "
190
  "Metrica account."
192
  "Yandex hesabınıza giriş yapmanız ve bu eklentinin Yandex Metrica hesabınıza "
193
  "bağlanmasına izin vermelisiniz."
194
 
195
+ #: templates/settings.php:71
196
  msgid "https://oauth.yandex.com/"
197
  msgstr ""
198
 
199
+ #: templates/settings.php:72
200
  msgid "Click here to getting confirmation code"
201
  msgstr "Aktivasyon kodu almak için tıklayınız."
202
 
203
+ #: templates/settings.php:76
204
  msgid "Enter Confirmation code here"
205
  msgstr "Doğrulama kodunu buraya giriniz"
206
 
207
+ #: templates/settings.php:77 templates/settings.php:182
208
  msgid "Save"
209
  msgstr "Kaydet"
210
 
211
+ #: templates/settings.php:81
212
  msgid "If you don't want to use API, you can use basic mode."
213
  msgstr ""
214
  "Eğer metrica API kullanmak istemiyorsanız, temel modu deneyebilirsiniz."
215
 
216
+ #: templates/settings.php:82
217
  msgid "Basic Mode (Compatible with Backward)"
218
  msgstr "Temel Mod (Geri uyumlu)"
219
 
220
+ #: templates/settings.php:88
221
  msgid "Counter:"
222
  msgstr "Sayaç:"
223
 
224
+ #: templates/settings.php:95
225
  msgid "Temporary, getting connectivity problem.!"
226
  msgstr "API erişiminde geçici bir bağlantı sorunu var!"
227
 
228
+ #: templates/settings.php:100
229
  msgid "Enter counter number"
230
  msgstr "Sayaç numarasını giriniz"
231
 
232
+ #: templates/settings.php:103
233
  msgid "Tracking Settings"
234
  msgstr "Takip Ayarları"
235
 
236
+ #: templates/settings.php:111
237
  msgid "Select tracking options"
238
  msgstr "Sayaç özellikleri"
239
 
240
+ #: templates/settings.php:114
241
  msgid "Webvisor"
242
  msgstr "Webvisor"
243
 
244
+ #: templates/settings.php:116
245
  msgid "Track Clickmap"
246
  msgstr "Tıklama Haritası"
247
 
248
+ #: templates/settings.php:118
249
  msgid "Track Links, social sharing, file requests..."
250
  msgstr "Dış bağlantılar, dosya yüklemeleri ve Paylaş butonu raporu"
251
 
252
+ #: templates/settings.php:120
253
  msgid "Accurate Track Bounce"
254
  msgstr "Hemen çıkma oranı"
255
 
256
+ #: templates/settings.php:122
257
  msgid "Hash tracking in the browser's address bar"
258
  msgstr "Tarayıcının adres satırında hash'in takip edilmesi"
259
 
260
+ #: templates/settings.php:129
261
  msgid "Track logged in users"
262
  msgstr "Giriş yapmış kullanıcıları dahil et"
263
 
264
+ #: templates/settings.php:133
265
  msgid "Yes"
266
  msgstr "Evet"
267
 
268
+ #: templates/settings.php:134
269
  msgid "No"
270
  msgstr "Hayır"
271
 
272
+ #: templates/settings.php:141
273
  msgid "User roles to not track"
274
  msgstr "Takip edilmeyecek kullanıcı seviyesi"
275
 
276
+ #: templates/settings.php:154
277
  msgid ""
278
  "If a user is logged into with one of these roles, they won't track by "
279
  "metrica."
281
  "Bu yetkiye sahip kullanıcılar, metrica servisi tarafından takip "
282
  "edilmeyecektir."
283
 
284
+ #: templates/settings.php:160
285
  msgid "User roles to display dashboard widget"
286
  msgstr "Yönetim panelinde istatistikleri görüntüleyebilecek kullanıcı seviyesi"
287
 
288
+ #: templates/settings.php:174
289
  msgid "Selected roles can display metrica statistic on the dashboard."
290
  msgstr ""
291
  "Bu yetkiye sahip kullanıcılar, istatistikleri yönetim panelinden "
292
  "görüntüleyebilecektir."
293
 
294
+ #: templates/settings.php:183
295
  msgid "Reset"
296
  msgstr "Sıfırla"
297
 
298
+ #: yandex-metrica.php:126
299
  msgid "You do not have sufficient permissions to access this page."
300
  msgstr "Bu sayfayı görüntüleme yetkiniz bulunmamaktadır."
301
 
302
+ #: yandex-metrica.php:139 yandex-metrica.php:142
303
  msgid "Metrica Statistics"
304
  msgstr "Metrika İstatistikleri"
305
 
306
+ #: yandex-metrica.php:149
307
  msgid "Oh no! There is nothing to display. Here Are the Possible Causes"
308
  msgstr "Olamaz :( Yayınlayacak bi'şey bulamadık. Muhtemel sebepler şöyle;"
309
 
310
+ #: yandex-metrica.php:150
311
  msgid ""
312
  "If selected a new counter (recently created), please give a few hours for "
313
  "verification. Please be patient."
315
  "Seçtiğiniz sayacı yeni mi oluşturdunuz? Eğer yeni oluşturmuşsanız "
316
  "doğrulamamız için bir kaç saat bekleyiniz."
317
 
318
+ #: yandex-metrica.php:151
319
  msgid ""
320
  "Did you save options? You need to save options at least once after account "
321
  "confirmation."
323
  "Ayarları kaydettiniz mi? Api izni verdikten sonra en az bir kere ayarları "
324
  "kaydetmeniz gerekmektedir."
325
 
326
+ #: yandex-metrica.php:152
327
  msgid "Are you sure you selected the correct counter? Please confirm."
328
  msgstr ""
329
  "Seçtiğiniz sayaç doğru mu? Lütfen sayacı yada sayacı kurarken belirttiğiniz "
330
  "internet adresinin doğru olduğundan emin olunuz."
331
 
332
+ #: yandex-metrica.php:153
333
  msgid ""
334
  "Did you change your Yandex password? If changed, you need to re-authorize "
335
  "this plugin."
337
  "Yandex şifrenizi mi değiştirdiniz? Şifre değişimlerinde eklenti yeniden "
338
  "yetkilendirilmelidir."
339
 
340
+ #: yandex-metrica.php:154
341
  msgid "Temporary, connectivity problem!"
342
  msgstr ""
343
  "Düşük bir olasılıkta olsa, geçici bir bağlantı sorunu yaşamış olabilirsiniz."
344
 
345
+ #: yandex-metrica.php:172
346
  msgid "View Full Report"
347
  msgstr "Tüm Raporu Görüntüle"
348
 
languages/{yandex_metrica.pot → yandex-metrica.pot} RENAMED
@@ -1,17 +1,16 @@
1
- # Copyright (C) 2015 Yandex Metrica
2
  # This file is distributed under the same license as the Yandex Metrica package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Yandex Metrica 1.1.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yandex-metrica\n"
7
- "POT-Creation-Date: 2015-11-22 17:06:56+00:00\n"
8
- "PO-Revision-Date: 2016-04-13 02:29+0200\n"
9
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
10
- "Language-Team: LANGUAGE <LL@li.org>\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
- "X-Generator: Poedit 1.6.7\n"
 
 
15
 
16
  #: libs/widget.php:27
17
  msgid "Display statistics within selected period."
@@ -150,174 +149,179 @@ msgstr[1] ""
150
  msgid "Search Terms"
151
  msgstr ""
152
 
153
- #: templates/settings.php:8
 
 
 
 
154
  msgid "Successfully connected to Yandex Server"
155
  msgstr ""
156
 
157
- #: templates/settings.php:11
158
  msgid "Something went wrong. Please check your confirmation code!"
159
  msgstr ""
160
 
161
- #: templates/settings.php:33
162
  msgid "Options Saved!"
163
  msgstr ""
164
 
165
- #: templates/settings.php:36
166
  msgid "Please enter a valid counter code!"
167
  msgstr ""
168
 
169
- #: templates/settings.php:49
170
  msgid "All options cleared!"
171
  msgstr ""
172
 
 
173
  #. Plugin Name of the plugin/theme
174
- #: templates/settings.php:59 yandex-metrica.php:85
175
  msgid "Yandex Metrica"
176
  msgstr ""
177
 
178
- #: templates/settings.php:62
179
  msgid ""
180
  "You need sign in to Yandex and grant this plugin access to your Yandex "
181
  "Metrica account."
182
  msgstr ""
183
 
184
- #: templates/settings.php:63
185
  msgid "https://oauth.yandex.com/"
186
  msgstr ""
187
 
188
- #: templates/settings.php:64
189
  msgid "Click here to getting confirmation code"
190
  msgstr ""
191
 
192
- #: templates/settings.php:68
193
  msgid "Enter Confirmation code here"
194
  msgstr ""
195
 
196
- #: templates/settings.php:69 templates/settings.php:172
197
  msgid "Save"
198
  msgstr ""
199
 
200
- #: templates/settings.php:73
201
  msgid "If you don't want to use API, you can use basic mode."
202
  msgstr ""
203
 
204
- #: templates/settings.php:74
205
  msgid "Basic Mode (Compatible with Backward)"
206
  msgstr ""
207
 
208
- #: templates/settings.php:80
209
  msgid "Counter:"
210
  msgstr ""
211
 
212
- #: templates/settings.php:87
213
  msgid "Temporary, getting connectivity problem.!"
214
  msgstr ""
215
 
216
- #: templates/settings.php:92
217
  msgid "Enter counter number"
218
  msgstr ""
219
 
220
- #: templates/settings.php:95
221
  msgid "Tracking Settings"
222
  msgstr ""
223
 
224
- #: templates/settings.php:103
225
  msgid "Select tracking options"
226
  msgstr ""
227
 
228
- #: templates/settings.php:106
229
  msgid "Webvisor"
230
  msgstr ""
231
 
232
- #: templates/settings.php:108
233
  msgid "Track Clickmap"
234
  msgstr ""
235
 
236
- #: templates/settings.php:110
237
  msgid "Track Links, social sharing, file requests..."
238
  msgstr ""
239
 
240
- #: templates/settings.php:112
241
  msgid "Accurate Track Bounce"
242
  msgstr ""
243
 
244
- #. templates/settings.php:115
245
  msgid "Hash tracking in the browser's address bar"
246
  msgstr ""
247
 
248
- #: templates/settings.php:119
249
  msgid "Track logged in users"
250
  msgstr ""
251
 
252
- #: templates/settings.php:123
253
  msgid "Yes"
254
  msgstr ""
255
 
256
- #: templates/settings.php:124
257
  msgid "No"
258
  msgstr ""
259
 
260
- #: templates/settings.php:131
261
  msgid "User roles to not track"
262
  msgstr ""
263
 
264
- #: templates/settings.php:144
265
  msgid ""
266
  "If a user is logged into with one of these roles, they won't track by "
267
  "metrica."
268
  msgstr ""
269
 
270
- #: templates/settings.php:150
271
  msgid "User roles to display dashboard widget"
272
  msgstr ""
273
 
274
- #: templates/settings.php:164
275
  msgid "Selected roles can display metrica statistic on the dashboard."
276
  msgstr ""
277
 
278
- #: templates/settings.php:173
279
  msgid "Reset"
280
  msgstr ""
281
 
282
- #: yandex-metrica.php:122
283
  msgid "You do not have sufficient permissions to access this page."
284
  msgstr ""
285
 
286
- #: yandex-metrica.php:135 yandex-metrica.php:138
287
  msgid "Metrica Statistics"
288
  msgstr ""
289
 
290
- #: yandex-metrica.php:145
291
  msgid "Oh no! There is nothing to display. Here Are the Possible Causes"
292
  msgstr ""
293
 
294
- #: yandex-metrica.php:146
295
  msgid ""
296
  "If selected a new counter (recently created), please give a few hours for "
297
  "verification. Please be patient."
298
  msgstr ""
299
 
300
- #: yandex-metrica.php:147
301
  msgid ""
302
  "Did you save options? You need to save options at least once after account "
303
  "confirmation."
304
  msgstr ""
305
 
306
- #: yandex-metrica.php:148
307
  msgid "Are you sure you selected the correct counter? Please confirm."
308
  msgstr ""
309
 
310
- #: yandex-metrica.php:149
311
  msgid ""
312
  "Did you change your Yandex password? If changed, you need to re-authorize "
313
  "this plugin."
314
  msgstr ""
315
 
316
- #: yandex-metrica.php:150
317
  msgid "Temporary, connectivity problem!"
318
  msgstr ""
319
 
320
- #: yandex-metrica.php:167
321
  msgid "View Full Report"
322
  msgstr ""
323
 
@@ -336,4 +340,3 @@ msgstr ""
336
  #. Author URI of the plugin/theme
337
  msgid "http://uysalmustafa.com"
338
  msgstr ""
339
-
1
+ # Copyright (C) 2016 Yandex Metrica
2
  # This file is distributed under the same license as the Yandex Metrica package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Yandex Metrica 1.3\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/yandex-metrica\n"
7
+ "POT-Creation-Date: 2016-09-20 21:59:12+00:00\n"
 
 
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
  #: libs/widget.php:27
16
  msgid "Display statistics within selected period."
149
  msgid "Search Terms"
150
  msgstr ""
151
 
152
+ #: templates/settings.php:6
153
+ msgid "Cheatin, uh?"
154
+ msgstr ""
155
+
156
+ #: templates/settings.php:14
157
  msgid "Successfully connected to Yandex Server"
158
  msgstr ""
159
 
160
+ #: templates/settings.php:17
161
  msgid "Something went wrong. Please check your confirmation code!"
162
  msgstr ""
163
 
164
+ #: templates/settings.php:40
165
  msgid "Options Saved!"
166
  msgstr ""
167
 
168
+ #: templates/settings.php:43
169
  msgid "Please enter a valid counter code!"
170
  msgstr ""
171
 
172
+ #: templates/settings.php:56
173
  msgid "All options cleared!"
174
  msgstr ""
175
 
176
+ #. #-#-#-#-# plugin.pot (Yandex Metrica 1.3) #-#-#-#-#
177
  #. Plugin Name of the plugin/theme
178
+ #: templates/settings.php:67 yandex-metrica.php:89
179
  msgid "Yandex Metrica"
180
  msgstr ""
181
 
182
+ #: templates/settings.php:70
183
  msgid ""
184
  "You need sign in to Yandex and grant this plugin access to your Yandex "
185
  "Metrica account."
186
  msgstr ""
187
 
188
+ #: templates/settings.php:71
189
  msgid "https://oauth.yandex.com/"
190
  msgstr ""
191
 
192
+ #: templates/settings.php:72
193
  msgid "Click here to getting confirmation code"
194
  msgstr ""
195
 
196
+ #: templates/settings.php:76
197
  msgid "Enter Confirmation code here"
198
  msgstr ""
199
 
200
+ #: templates/settings.php:77 templates/settings.php:182
201
  msgid "Save"
202
  msgstr ""
203
 
204
+ #: templates/settings.php:81
205
  msgid "If you don't want to use API, you can use basic mode."
206
  msgstr ""
207
 
208
+ #: templates/settings.php:82
209
  msgid "Basic Mode (Compatible with Backward)"
210
  msgstr ""
211
 
212
+ #: templates/settings.php:88
213
  msgid "Counter:"
214
  msgstr ""
215
 
216
+ #: templates/settings.php:95
217
  msgid "Temporary, getting connectivity problem.!"
218
  msgstr ""
219
 
220
+ #: templates/settings.php:100
221
  msgid "Enter counter number"
222
  msgstr ""
223
 
224
+ #: templates/settings.php:103
225
  msgid "Tracking Settings"
226
  msgstr ""
227
 
228
+ #: templates/settings.php:111
229
  msgid "Select tracking options"
230
  msgstr ""
231
 
232
+ #: templates/settings.php:114
233
  msgid "Webvisor"
234
  msgstr ""
235
 
236
+ #: templates/settings.php:116
237
  msgid "Track Clickmap"
238
  msgstr ""
239
 
240
+ #: templates/settings.php:118
241
  msgid "Track Links, social sharing, file requests..."
242
  msgstr ""
243
 
244
+ #: templates/settings.php:120
245
  msgid "Accurate Track Bounce"
246
  msgstr ""
247
 
248
+ #: templates/settings.php:122
249
  msgid "Hash tracking in the browser's address bar"
250
  msgstr ""
251
 
252
+ #: templates/settings.php:129
253
  msgid "Track logged in users"
254
  msgstr ""
255
 
256
+ #: templates/settings.php:133
257
  msgid "Yes"
258
  msgstr ""
259
 
260
+ #: templates/settings.php:134
261
  msgid "No"
262
  msgstr ""
263
 
264
+ #: templates/settings.php:141
265
  msgid "User roles to not track"
266
  msgstr ""
267
 
268
+ #: templates/settings.php:154
269
  msgid ""
270
  "If a user is logged into with one of these roles, they won't track by "
271
  "metrica."
272
  msgstr ""
273
 
274
+ #: templates/settings.php:160
275
  msgid "User roles to display dashboard widget"
276
  msgstr ""
277
 
278
+ #: templates/settings.php:174
279
  msgid "Selected roles can display metrica statistic on the dashboard."
280
  msgstr ""
281
 
282
+ #: templates/settings.php:183
283
  msgid "Reset"
284
  msgstr ""
285
 
286
+ #: yandex-metrica.php:126
287
  msgid "You do not have sufficient permissions to access this page."
288
  msgstr ""
289
 
290
+ #: yandex-metrica.php:139 yandex-metrica.php:142
291
  msgid "Metrica Statistics"
292
  msgstr ""
293
 
294
+ #: yandex-metrica.php:149
295
  msgid "Oh no! There is nothing to display. Here Are the Possible Causes"
296
  msgstr ""
297
 
298
+ #: yandex-metrica.php:150
299
  msgid ""
300
  "If selected a new counter (recently created), please give a few hours for "
301
  "verification. Please be patient."
302
  msgstr ""
303
 
304
+ #: yandex-metrica.php:151
305
  msgid ""
306
  "Did you save options? You need to save options at least once after account "
307
  "confirmation."
308
  msgstr ""
309
 
310
+ #: yandex-metrica.php:152
311
  msgid "Are you sure you selected the correct counter? Please confirm."
312
  msgstr ""
313
 
314
+ #: yandex-metrica.php:153
315
  msgid ""
316
  "Did you change your Yandex password? If changed, you need to re-authorize "
317
  "this plugin."
318
  msgstr ""
319
 
320
+ #: yandex-metrica.php:154
321
  msgid "Temporary, connectivity problem!"
322
  msgstr ""
323
 
324
+ #: yandex-metrica.php:172
325
  msgid "View Full Report"
326
  msgstr ""
327
 
340
  #. Author URI of the plugin/theme
341
  msgid "http://uysalmustafa.com"
342
  msgstr ""
 
languages/yandex_metrica-tr_TR.mo DELETED
Binary file
libs/widget.php CHANGED
@@ -24,7 +24,7 @@ class Metrica_Widget extends WP_Widget {
24
  parent::__construct(
25
  'metrica_widget',
26
  'Metrica Widget',
27
- array( 'description' => __( 'Display statistics within selected period.', 'yandex_metrica' ), ) // Args
28
  );
29
  }
30
 
@@ -52,7 +52,7 @@ class Metrica_Widget extends WP_Widget {
52
  $end_date = date( 'Ymd' );
53
  }
54
 
55
- printf( __( '<h3>Metrica statistics for %s </h3>', 'yandex_metrica' ), __( ucfirst( $instance["time"] ), 'yandex_metrica' ) );
56
  $main_options = get_option( 'metrica_options' );
57
  $metrica_api = new Yandex_Metrica( $main_options['access_token'] );
58
  $results = $metrica_api->get_counter_statistics( $main_options['counter_id'], $start_date, $end_date, "totals" );
@@ -63,11 +63,11 @@ class Metrica_Widget extends WP_Widget {
63
 
64
 
65
  if ( $instance['show_page_views'] === true && ( ! empty( $instance["page_views"] ) ) )
66
- printf( __( 'Page Views: <b>%d</b> <br/>', 'yandex_metrica' ), $instance['page_views'] );
67
  if ( $instance['show_visits'] === true && ! empty( $instance["visits"] ) )
68
- printf( __( 'Visits: <b>%d</b> </br>', 'yandex_metrica' ), $instance['visits'] );
69
  if ( $instance['show_visitors'] === true && ! empty( $instance["visits"] ) )
70
- printf( __( 'Visitors: <b>%d</b> </br>', 'yandex_metrica' ), $instance['visits'] );
71
 
72
  echo $args['after_widget'];
73
  }
@@ -86,19 +86,19 @@ class Metrica_Widget extends WP_Widget {
86
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
87
  </p>
88
  <p>
89
- <label for="<?php echo $this->get_field_name( 'time' ); ?>"><?php _e( 'Statistics for:', 'yandex_metrica' ); ?></label>
90
  <select id="<?php echo $this->get_field_id( 'time' ); ?>" name="<?php echo $this->get_field_name( 'time' ); ?>">
91
- <option <?php selected( $instance['time'], 'today' ); ?> value="today"><?php _e( 'Today', 'yandex_metrica' ); ?></option>
92
- <option <?php selected( $instance['time'], 'week' ); ?> value="week"><?php _e( 'Week', 'yandex_metrica' ); ?></option>
93
- <option <?php selected( $instance['time'], 'month' ); ?> value="month"><?php _e( 'Month', 'yandex_metrica' ); ?></option>
94
  </select>
95
  </p>
96
  <p>
97
- <label><input type="checkbox" <?php checked( $instance['show_page_views'] ); ?> name="<?php echo $this->get_field_name( 'show_page_views' ); ?>" value="1"> <?php _e( 'Show Pageview', 'yandex_metrica' ) ?>
98
  </label><br>
99
- <label><input type="checkbox" <?php checked( $instance['show_visits'] ); ?> name="<?php echo $this->get_field_name( 'show_visits' ); ?>" value="1"> <?php _e( 'Show Visits', 'yandex_metrica' ) ?>
100
  </label><br>
101
- <label><input type="checkbox" <?php checked( $instance['show_visitors'] ); ?> name="<?php echo $this->get_field_name( 'show_visitors' ); ?>" value="1"> <?php _e( 'Show Visitors', 'yandex_metrica' ) ?>
102
  </label><br>
103
  </p>
104
  <?php
24
  parent::__construct(
25
  'metrica_widget',
26
  'Metrica Widget',
27
+ array( 'description' => __( 'Display statistics within selected period.', 'yandex-metrica' ), ) // Args
28
  );
29
  }
30
 
52
  $end_date = date( 'Ymd' );
53
  }
54
 
55
+ printf( __( '<h3>Metrica statistics for %s </h3>', 'yandex-metrica' ), __( ucfirst( $instance["time"] ), 'yandex-metrica' ) );
56
  $main_options = get_option( 'metrica_options' );
57
  $metrica_api = new Yandex_Metrica( $main_options['access_token'] );
58
  $results = $metrica_api->get_counter_statistics( $main_options['counter_id'], $start_date, $end_date, "totals" );
63
 
64
 
65
  if ( $instance['show_page_views'] === true && ( ! empty( $instance["page_views"] ) ) )
66
+ printf( __( 'Page Views: <b>%d</b> <br/>', 'yandex-metrica' ), $instance['page_views'] );
67
  if ( $instance['show_visits'] === true && ! empty( $instance["visits"] ) )
68
+ printf( __( 'Visits: <b>%d</b> </br>', 'yandex-metrica' ), $instance['visits'] );
69
  if ( $instance['show_visitors'] === true && ! empty( $instance["visits"] ) )
70
+ printf( __( 'Visitors: <b>%d</b> </br>', 'yandex-metrica' ), $instance['visits'] );
71
 
72
  echo $args['after_widget'];
73
  }
86
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
87
  </p>
88
  <p>
89
+ <label for="<?php echo $this->get_field_name( 'time' ); ?>"><?php _e( 'Statistics for:', 'yandex-metrica' ); ?></label>
90
  <select id="<?php echo $this->get_field_id( 'time' ); ?>" name="<?php echo $this->get_field_name( 'time' ); ?>">
91
+ <option <?php selected( $instance['time'], 'today' ); ?> value="today"><?php _e( 'Today', 'yandex-metrica' ); ?></option>
92
+ <option <?php selected( $instance['time'], 'week' ); ?> value="week"><?php _e( 'Week', 'yandex-metrica' ); ?></option>
93
+ <option <?php selected( $instance['time'], 'month' ); ?> value="month"><?php _e( 'Month', 'yandex-metrica' ); ?></option>
94
  </select>
95
  </p>
96
  <p>
97
+ <label><input type="checkbox" <?php checked( $instance['show_page_views'] ); ?> name="<?php echo $this->get_field_name( 'show_page_views' ); ?>" value="1"> <?php _e( 'Show Pageview', 'yandex-metrica' ) ?>
98
  </label><br>
99
+ <label><input type="checkbox" <?php checked( $instance['show_visits'] ); ?> name="<?php echo $this->get_field_name( 'show_visits' ); ?>" value="1"> <?php _e( 'Show Visits', 'yandex-metrica' ) ?>
100
  </label><br>
101
+ <label><input type="checkbox" <?php checked( $instance['show_visitors'] ); ?> name="<?php echo $this->get_field_name( 'show_visitors' ); ?>" value="1"> <?php _e( 'Show Visitors', 'yandex-metrica' ) ?>
102
  </label><br>
103
  </p>
104
  <?php
readme.txt ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Yandex Metrica ===
2
+
3
+ Contributors: m_uysl
4
+ Tags: yandex,metrica,stats,statistics,tools,analytics,analytics tool,metrika
5
+ Requires at least: 3.0
6
+ Tested up to: 4.6
7
+ Stable tag: 1.4
8
+ License: GPLv2 (or later)
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+
12
+ Easy way to use Yandex Metrica in your WordPress site.
13
+
14
+ == Description ==
15
+
16
+ Best Metrica plugin for the using Yandex Metrica in your WordPress site.
17
+
18
+ = What is Metrica =
19
+
20
+ Metrica is an analytics tool like as google analytics.If you didn't hear metrica yet, you can [check official metrica](http://metrica.yandex.com/) page.
21
+
22
+
23
+ = Features =
24
+
25
+ - Easy to manage counter's tracking options.
26
+ - Role based user tracking
27
+ - Dashboard widget that displaying metrica graphic, summary of site usage, top pages etc..
28
+ - Role based user access for the displaying dashboard widget
29
+ - Basic mode ready! If you don't want to give API access, you can try basic mode.
30
+ - i18n support: Completely translation ready!
31
+
32
+
33
+ = Translations =
34
+
35
+ * English (en_US), built-in
36
+ * Turkish (tr_TR), native support
37
+ * Russian (ru_RU), [oleg0789](https://profiles.wordpress.org/oleg0789) and Ксения Рыбка
38
+
39
+ == Installation ==
40
+
41
+ Extract the zip file and just drop the contents in the `wp-content/plugins/` directory of your WordPress installation and then activate the Plugin from admin's Plugins page.
42
+
43
+ == Frequently Asked Questions ==
44
+
45
+ * What is metrica?
46
+ - Metrica is a powerful analytics tool that provided by Yandex.
47
+ * Is it free?
48
+ - Definitely, metrica service and this plugin totally free.
49
+ * Can I see statistics on the WordPress dashboard?
50
+ - Yes, version 1.0 or higher versions support dashboard widget. But you need to use advanced mode. (Because this feature needs API access)
51
+ * I can see dashboard widget but no graph?
52
+ - If your counter hasn't any visitors or visits value it could be empty, but probably your counter not working correctly, Check counter status from official metrica site.
53
+ * Localization issue?
54
+ - Yandex Metrica plugin is using native WordPress localization of the some piece of code. For example date, user roles etc...
55
+ * Everything done, but metrica service doesn't work for me?
56
+ - Yandex Metrica plugin uses wp_footer hook for the adds necessary trancking code. Please, check your theme has wp_footer hook?
57
+
58
+ == Screenshots ==
59
+
60
+ 1. Select mode, basic mode for who don't want to use metrica api. But advanced mode recommended!
61
+ 2. Displaying graph with metrica results.
62
+ 3. Settings page.
63
+
64
+ == Changelog ==
65
+
66
+ = 1.4 =
67
+ - Text Domain changed
68
+ - Nonces added to settings page
69
+ - Wrong option name fixed. Props [romapad](https://github.com/romapad)
70
+
71
+ = 1.3 =
72
+ - Updated metrica tracking code
73
+ - New hash tracking option added
74
+
75
+ = 1.2 =
76
+ - Improved error checking for API request
77
+ - Possible connectivity case added
78
+ - Minor tweaks
79
+
80
+ = 1.1.2 =
81
+ - Russian language pack added. Props Ксения Рыбка and oleg0789
82
+ - API connectivity check improved
83
+ - Minor fixes
84
+
85
+ = 1.1.1 =
86
+ - Dashboard widget daily order fixed
87
+
88
+ = 1.1 =
89
+ - Dashboard widget UI improvements
90
+ - Bug fixes
91
+
92
+ = 1.0.2 =
93
+ - Capability checking before display temporary dashboard widget
94
+
95
+ = 1.0.1 =
96
+ - Closure function removed
97
+ - Typo fix
98
+
99
+ = 1.0 =
100
+ - Metrica API integration
101
+ - Backward compatibility mode
102
+ - Tracking by user role
103
+ - Dashboard widget
104
+ - New widget, informer widget still exist
105
+ - Better localization
106
+ - Performance improvements
107
+ - Special thanks to Yandex Team for all support.
108
+
109
+ = 0.1.3 =
110
+ - Minor bug fixes
111
+
112
+ = 0.1.2 =
113
+ - Bug fix - about options
114
+
115
+ = 0.1.1 =
116
+ - bug fix - header output
117
+
118
+ = 0.1 =
119
+ - Initial release.
120
+
121
+ == Upgrade Notice ==
122
+
123
+ = 1.0 =
124
+
125
+ Including major changes, recommended update!
templates/dashboard-charts-js.php CHANGED
@@ -7,13 +7,13 @@
7
  type: 'line'
8
  },
9
  title : {
10
- text: '<?php echo __('Metrica Traffic','yandex_metrica');?>'
11
  },
12
  credits : {
13
  enabled: false
14
  },
15
  subtitle: {
16
- text: '<?php echo __('Source','yandex_metrica');?>:<?php echo self::$metrica_api->get_counter_name( $this->options["counter_id"] );?>'
17
  },
18
  xAxis : {
19
  type : 'datetime',
@@ -35,7 +35,7 @@
35
  },
36
  yAxis : {
37
  title: {
38
- text: '<?php echo __('Visits','yandex_metrica');?>'
39
  },
40
  min : 0
41
  },
@@ -49,7 +49,7 @@
49
 
50
  series: [
51
  {
52
- name: '<?php echo __('Visits','yandex_metrica');?>',
53
  data: [
54
  <?php foreach( $statical_data as $item){
55
  echo $item["visits"].",";
@@ -57,7 +57,7 @@
57
  ]
58
  },
59
  {
60
- name: '<?php echo __('Unique','yandex_metrica');?>',
61
  data: [
62
  <?php foreach( $statical_data as $item){
63
  echo $item["visitors"].',';
7
  type: 'line'
8
  },
9
  title : {
10
+ text: '<?php echo __('Metrica Traffic','yandex-metrica');?>'
11
  },
12
  credits : {
13
  enabled: false
14
  },
15
  subtitle: {
16
+ text: '<?php echo __('Source','yandex-metrica');?>:<?php echo self::$metrica_api->get_counter_name( $this->options["counter_id"] );?>'
17
  },
18
  xAxis : {
19
  type : 'datetime',
35
  },
36
  yAxis : {
37
  title: {
38
+ text: '<?php echo __('Visits','yandex-metrica');?>'
39
  },
40
  min : 0
41
  },
49
 
50
  series: [
51
  {
52
+ name: '<?php echo __('Visits','yandex-metrica');?>',
53
  data: [
54
  <?php foreach( $statical_data as $item){
55
  echo $item["visits"].",";
57
  ]
58
  },
59
  {
60
+ name: '<?php echo __('Unique','yandex-metrica');?>',
61
  data: [
62
  <?php foreach( $statical_data as $item){
63
  echo $item["visitors"].',';
templates/dashboard-widget.php CHANGED
@@ -2,41 +2,41 @@
2
  die();
3
  } ?>
4
  <select name="period" id="period">
5
- <option <?php selected( $this->period, "daily" ); ?> value="daily"><?php _e( 'Daily', 'yandex_metrica' ); ?></option>
6
  <option <?php selected( $this->period, "weekly" ); ?> <?php if (empty ( $this->period )) {
7
  echo "selected";
8
- } ?> value="weekly"><?php _e( 'Weekly', 'yandex_metrica' ); ?></option>
9
- <option <?php selected( $this->period, "monthly" ); ?> value="monthly"><?php _e( 'Monthly', 'yandex_metrica' ); ?></option>
10
  </select>
11
  <span id="metricaloading"></span>
12
  <?php if ( ! empty( $total_values["visits"] ) || ! empty( $total_values["visitors"] )): ?>
13
  <div id="metrica-graph" style="width:100%; height: 400px;"></div>
14
  <?php endif; ?>
15
  <div id="metrica-widget-data">
16
- <h3><?php _e( 'Site Usage', 'yandex_metrica' ); ?></h3>
17
  <table width="100%">
18
  <tr>
19
  <td width="20%">
20
- <b><?php _e( 'Visits', 'yandex_metrica' ); ?>:</b>
21
  </td>
22
  <td width="20%">
23
  <?php
24
  if ( ! empty( $total_values["visits"] )) {
25
  echo $total_values["visits"];
26
  } else {
27
- _e( 'None', 'yandex_metrica' );
28
  }
29
  ?>
30
  </td>
31
  <td width="20%">
32
- <b><?php _e( 'New Visitors', 'yandex_metrica' ); ?>:</b>
33
  </td>
34
  <td width="20%">
35
  <?php
36
  if ( ! empty( $total_values["new_visitors_perc"] )) {
37
  echo '%'.$total_values["new_visitors_perc"] * 100;
38
  } else {
39
- _e( 'None', 'yandex_metrica' );
40
  }
41
  ?>
42
  </td>
@@ -45,24 +45,24 @@
45
 
46
  <tr>
47
  <td>
48
- <b><?php _e( 'Page Views', 'yandex_metrica' ); ?>:</b>
49
  </td>
50
  <td>
51
  <?php if ( ! empty( $total_values["page_views"] )) {
52
  echo $total_values["page_views"];
53
  } else {
54
- _e( 'None', 'yandex_metrica' );
55
  }
56
  ?>
57
  </td>
58
  <td>
59
- <b><?php _e( 'Session depth', 'yandex_metrica' ); ?>:</b>
60
  </td>
61
  <td>
62
  <?php if ( ! empty( $total_values["depth"] )) {
63
  echo round( $total_values["depth"], 1 );
64
  } else {
65
- _e( 'None', 'yandex_metrica' );
66
  }
67
  ?>
68
  </td>
@@ -71,25 +71,25 @@
71
 
72
  <tr>
73
  <td>
74
- <b><?php _e( 'Visitors', 'yandex_metrica' ); ?>:</b>
75
  </td>
76
  <td>
77
  <?php if ( ! empty( $total_values["visitors"] )) {
78
  echo $total_values["visitors"];
79
  } else {
80
- echo __( 'None', 'yandex_metrica' );
81
  }
82
  ?>
83
  </td>
84
  <td>
85
- <b><?php _e( 'Avg. Time on Site', 'yandex_metrica' ); ?>:</b>
86
  </td>
87
  <td>
88
  <?php
89
  if ( ! empty( $total_values["visit_time"] )) {
90
  echo gmdate( "H:i:s", $total_values["visit_time"] );
91
  } else {
92
- _e( 'None', 'yandex_metrica' );
93
  }
94
  ?>
95
  </td>
@@ -102,7 +102,7 @@
102
  <div id="popular-posts" class="postbox">
103
  <div class="handlediv" id="toggle-popular-pages"><br /></div>
104
 
105
- <h3><?php _e( 'Popular Pages', 'yandex_metrica' ); ?></h3>
106
 
107
  <ol class="metrica-popular-pages">
108
 
@@ -110,11 +110,11 @@
110
  <?php foreach ($popular_posts["data"] as $post): ?>
111
  <li>
112
  <a href="<?php echo esc_url( $post["url"] ); ?>"><?php echo esc_url( $post["url"] ); ?></a> -
113
- <?php echo sprintf( _n( '%d View', '%d Views', $post["page_views"], 'yandex_metrica' ), $post["page_views"] ); ?>
114
  </li>
115
  <?php endforeach; ?>
116
  <?php else: ?>
117
- <?php _e( 'None', 'yandex_metrica' ); ?>
118
  <?php endif; ?>
119
 
120
  </ol>
@@ -124,7 +124,7 @@
124
  <div id="metrica-incoming" class="postbox">
125
  <div class="handlediv" id="toggle-top-referrers"><br /></div>
126
 
127
- <h3><?php _e( 'Top Referrers', 'yandex_metrica' ); ?></h3>
128
 
129
  <ol class="metrica-top-referrers" style="display:none">
130
 
@@ -132,11 +132,11 @@
132
  <?php foreach ($top_referrers["data"] as $referrer): ?>
133
  <li>
134
  <a href="<?php echo esc_url( $referrer["url"] ); ?>"><?php echo esc_url( $referrer["url"] ); ?></a> -
135
- <?php echo sprintf( _n( '%d Visit', '%d Visits', $referrer["visits"], 'yandex_metrica' ), $referrer["visits"] ); ?>
136
  </li>
137
  <?php endforeach; ?>
138
  <?php else: ?>
139
- <?php _e( 'None', 'yandex_metrica' ); ?>
140
  <?php endif; ?>
141
 
142
  </ol>
@@ -147,18 +147,18 @@
147
  <div id="top-searches" class="postbox">
148
  <div class="handlediv" id="toggle-top-searches"><br /></div>
149
 
150
- <h3><?php _e( 'Search Terms', 'yandex_metrica' ); ?></h3>
151
  <ol class="metrica-top-searches" style="display:none">
152
 
153
  <?php if ( ! empty( $top_searches["data"] )) : ?>
154
  <?php foreach ($top_searches["data"] as $search_term): ?>
155
  <li>
156
  <strong><?php echo $search_term["phrase"]; ?></strong> -
157
- <?php echo sprintf( _n( '%d Visit', '%d Visits', $search_term["visits"], 'yandex_metrica' ), $search_term["visits"] ); ?>
158
  </li>
159
  <?php endforeach ?>
160
  <?php else: ?>
161
- <?php _e( 'None', 'yandex_metrica' ); ?>
162
  <?php endif; ?>
163
 
164
  </ol>
2
  die();
3
  } ?>
4
  <select name="period" id="period">
5
+ <option <?php selected( $this->period, "daily" ); ?> value="daily"><?php _e( 'Daily', 'yandex-metrica' ); ?></option>
6
  <option <?php selected( $this->period, "weekly" ); ?> <?php if (empty ( $this->period )) {
7
  echo "selected";
8
+ } ?> value="weekly"><?php _e( 'Weekly', 'yandex-metrica' ); ?></option>
9
+ <option <?php selected( $this->period, "monthly" ); ?> value="monthly"><?php _e( 'Monthly', 'yandex-metrica' ); ?></option>
10
  </select>
11
  <span id="metricaloading"></span>
12
  <?php if ( ! empty( $total_values["visits"] ) || ! empty( $total_values["visitors"] )): ?>
13
  <div id="metrica-graph" style="width:100%; height: 400px;"></div>
14
  <?php endif; ?>
15
  <div id="metrica-widget-data">
16
+ <h3><?php _e( 'Site Usage', 'yandex-metrica' ); ?></h3>
17
  <table width="100%">
18
  <tr>
19
  <td width="20%">
20
+ <b><?php _e( 'Visits', 'yandex-metrica' ); ?>:</b>
21
  </td>
22
  <td width="20%">
23
  <?php
24
  if ( ! empty( $total_values["visits"] )) {
25
  echo $total_values["visits"];
26
  } else {
27
+ _e( 'None', 'yandex-metrica' );
28
  }
29
  ?>
30
  </td>
31
  <td width="20%">
32
+ <b><?php _e( 'New Visitors', 'yandex-metrica' ); ?>:</b>
33
  </td>
34
  <td width="20%">
35
  <?php
36
  if ( ! empty( $total_values["new_visitors_perc"] )) {
37
  echo '%'.$total_values["new_visitors_perc"] * 100;
38
  } else {
39
+ _e( 'None', 'yandex-metrica' );
40
  }
41
  ?>
42
  </td>
45
 
46
  <tr>
47
  <td>
48
+ <b><?php _e( 'Page Views', 'yandex-metrica' ); ?>:</b>
49
  </td>
50
  <td>
51
  <?php if ( ! empty( $total_values["page_views"] )) {
52
  echo $total_values["page_views"];
53
  } else {
54
+ _e( 'None', 'yandex-metrica' );
55
  }
56
  ?>
57
  </td>
58
  <td>
59
+ <b><?php _e( 'Session depth', 'yandex-metrica' ); ?>:</b>
60
  </td>
61
  <td>
62
  <?php if ( ! empty( $total_values["depth"] )) {
63
  echo round( $total_values["depth"], 1 );
64
  } else {
65
+ _e( 'None', 'yandex-metrica' );
66
  }
67
  ?>
68
  </td>
71
 
72
  <tr>
73
  <td>
74
+ <b><?php _e( 'Visitors', 'yandex-metrica' ); ?>:</b>
75
  </td>
76
  <td>
77
  <?php if ( ! empty( $total_values["visitors"] )) {
78
  echo $total_values["visitors"];
79
  } else {
80
+ echo __( 'None', 'yandex-metrica' );
81
  }
82
  ?>
83
  </td>
84
  <td>
85
+ <b><?php _e( 'Avg. Time on Site', 'yandex-metrica' ); ?>:</b>
86
  </td>
87
  <td>
88
  <?php
89
  if ( ! empty( $total_values["visit_time"] )) {
90
  echo gmdate( "H:i:s", $total_values["visit_time"] );
91
  } else {
92
+ _e( 'None', 'yandex-metrica' );
93
  }
94
  ?>
95
  </td>
102
  <div id="popular-posts" class="postbox">
103
  <div class="handlediv" id="toggle-popular-pages"><br /></div>
104
 
105
+ <h3><?php _e( 'Popular Pages', 'yandex-metrica' ); ?></h3>
106
 
107
  <ol class="metrica-popular-pages">
108
 
110
  <?php foreach ($popular_posts["data"] as $post): ?>
111
  <li>
112
  <a href="<?php echo esc_url( $post["url"] ); ?>"><?php echo esc_url( $post["url"] ); ?></a> -
113
+ <?php echo sprintf( _n( '%d View', '%d Views', $post["page_views"], 'yandex-metrica' ), $post["page_views"] ); ?>
114
  </li>
115
  <?php endforeach; ?>
116
  <?php else: ?>
117
+ <?php _e( 'None', 'yandex-metrica' ); ?>
118
  <?php endif; ?>
119
 
120
  </ol>
124
  <div id="metrica-incoming" class="postbox">
125
  <div class="handlediv" id="toggle-top-referrers"><br /></div>
126
 
127
+ <h3><?php _e( 'Top Referrers', 'yandex-metrica' ); ?></h3>
128
 
129
  <ol class="metrica-top-referrers" style="display:none">
130
 
132
  <?php foreach ($top_referrers["data"] as $referrer): ?>
133
  <li>
134
  <a href="<?php echo esc_url( $referrer["url"] ); ?>"><?php echo esc_url( $referrer["url"] ); ?></a> -
135
+ <?php echo sprintf( _n( '%d Visit', '%d Visits', $referrer["visits"], 'yandex-metrica' ), $referrer["visits"] ); ?>
136
  </li>
137
  <?php endforeach; ?>
138
  <?php else: ?>
139
+ <?php _e( 'None', 'yandex-metrica' ); ?>
140
  <?php endif; ?>
141
 
142
  </ol>
147
  <div id="top-searches" class="postbox">
148
  <div class="handlediv" id="toggle-top-searches"><br /></div>
149
 
150
+ <h3><?php _e( 'Search Terms', 'yandex-metrica' ); ?></h3>
151
  <ol class="metrica-top-searches" style="display:none">
152
 
153
  <?php if ( ! empty( $top_searches["data"] )) : ?>
154
  <?php foreach ($top_searches["data"] as $search_term): ?>
155
  <li>
156
  <strong><?php echo $search_term["phrase"]; ?></strong> -
157
+ <?php echo sprintf( _n( '%d Visit', '%d Visits', $search_term["visits"], 'yandex-metrica' ), $search_term["visits"] ); ?>
158
  </li>
159
  <?php endforeach ?>
160
  <?php else: ?>
161
+ <?php _e( 'None', 'yandex-metrica' ); ?>
162
  <?php endif; ?>
163
 
164
  </ol>
templates/settings.php CHANGED
@@ -1,14 +1,20 @@
1
  <?php if ( ! defined( 'ABSPATH' ) ) die(); ?>
2
 
3
  <?php
 
 
 
 
 
 
4
  if ( isset( $_POST['yandex-metrica-authorize'] ) ) {
5
  $this->options['authcode'] = intval( $_POST['auth-code'] );
6
 
7
  if ( $this->authorize( esc_attr( $this->options['authcode'] ) ) ) {
8
- echo '<div class="updated"><p>' . __( 'Successfully connected to Yandex Server', 'yandex_metrica' ) . '</p></div>';
9
  }
10
  else {
11
- echo '<div class="error"><p>' . __( 'Something went wrong. Please check your confirmation code!', 'yandex_metrica' ) . '</p></div>';
12
  }
13
  }
14
 
@@ -31,10 +37,10 @@ if ( isset( $_POST["yandex-metrica-save"] ) ) {
31
 
32
 
33
  if ( is_numeric( $_POST["metrica-counter"] ) ) {
34
- echo '<div class="updated"><p>' . __( 'Options Saved!', 'yandex_metrica' ) . '</p></div>';
35
  }
36
  else {
37
- echo '<div class="error fade"><p>' . __( "Please enter a valid counter code!", "yandex_metrica" ) . '</a></p></div>';
38
  $this->options["counter_id"] = null;
39
  }
40
 
@@ -47,7 +53,7 @@ if ( isset( $_POST["reset"] ) ) {
47
  $this->update_options( null );
48
  $this->options = $this->get_options(); // call default options
49
 
50
- echo ' <div class="updated"><p>' . __( 'All options cleared!', 'yandex_metrica' ) . '</p></div>';
51
  }
52
 
53
  ?>
@@ -56,44 +62,45 @@ if ( isset( $_POST["reset"] ) ) {
56
 
57
  <div class="wrap">
58
  <form method="post" action="">
 
59
 
60
- <h2><?php _e( 'Yandex Metrica', 'yandex_metrica' ); ?></h2>
61
 
62
  <?php if ( ! $this->is_authorized() && $this->options["backward"] === false ) : ?>
63
- <p><?php _e( 'You need sign in to Yandex and grant this plugin access to your Yandex Metrica account.', 'yandex_metrica' ); ?></p>
64
- <p class="button" onclick="window.open('<?php printf('%sauthorize?response_type=code&client_id=%s&display=popup',__('https://oauth.yandex.com/','yandex_metrica'), self::YANDEX_APP_ID); ?>', 'activate','width=600, height=500, menubar=0, status=0, location=0, toolbar=0')">
65
- <a style="text-decoration: none;" target="_blank" href="javascript:void(0);"><b><?php _e( 'Click here to getting confirmation code', 'yandex_metrica' ); ?></b></a>
66
  </p>
67
 
68
  <div id="metrica-settings">
69
- <input type="text" name="auth-code" placeholder="<?php _e( 'Enter Confirmation code here', 'yandex_metrica' ); ?>" style="width: 300px;" />
70
- <?php submit_button( __( 'Save', 'yandex_metrica' ), 'primary', 'yandex-metrica-authorize', false ); ?>
71
  </div>
72
 
73
  <hr>
74
- <p><?php _e( "If you don't want to use API, you can use basic mode.", "yandex_metrica" ); ?></p>
75
- <?php submit_button( __( 'Basic Mode (Compatible with Backward)', 'yandex_metrica' ), 'button', 'backward', false ); ?>
76
 
77
 
78
  <?php else: ?>
79
  <?php if ( $this->options["backward"] === false ): ?>
80
  <?php if ( ! is_null( self::$metrica_api->get_counters() ) ): ?>
81
- <label for="metrica-counter"><?php _e( 'Counter:', 'yandex_metrica' ); ?></label>
82
  <select name="metrica-counter" id="metrica-counter">
83
  <?php foreach ( self::$metrica_api->get_counters() as $counter ): ?>
84
  <option <?php if ( ! empty( $this->options["counter_id"] ) ) selected( $this->options["counter_id"], $counter['id'] ); ?> value="<?php echo $counter['id']; ?>"><?php echo $counter['site']; ?></option>
85
  <?php endforeach; ?>
86
  </select>
87
  <?php else:
88
- echo '<div class="error"><p>' . __( 'Temporary, getting connectivity problem.!', 'yandex_metrica' ) . '</p></div>';
89
  ?>
90
  <br />
91
  <?php endif; ?>
92
  <?php else: ?>
93
- <input type="text" name="metrica-counter" <?php if ( isset( $this->options["counter_id"] ) ) echo 'value="' . esc_attr( $this->options["counter_id"] ) . '"'; ?> placeholder="<?php _e( 'Enter counter number', 'yandex_metrica' ); ?>" style="width:300px;" metrica-counter" />
94
  <?php endif; ?>
95
 
96
- <h3><?php _e( 'Tracking Settings', 'yandex_metrica' ); ?></h3>
97
 
98
  <table class="form-table">
99
 
@@ -101,37 +108,37 @@ if ( isset( $_POST["reset"] ) ) {
101
 
102
  <tr valign="top">
103
  <th>
104
- <label><?php _e( 'Select tracking options', 'yandex_metrica' ); ?></label>
105
  </th>
106
  <td>
107
- <label><input type="checkbox" <?php checked( $this->options['webvisor'] ); ?> name="metrica_webvisor" value="1"> <?php _e( 'Webvisor', 'yandex_metrica' ) ?>
108
  </label><br>
109
- <label><input type="checkbox" <?php checked( $this->options['clickmap'] ); ?> name="metrica_clickmap" value="1"> <?php _e( 'Track Clickmap', 'yandex_metrica' ); ?>
110
  </label><br>
111
- <label><input type="checkbox" <?php checked( $this->options['tracklinks'] ); ?> name="metrica_tracklinks" value="1"> <?php _e( 'Track Links, social sharing, file requests...', 'yandex_metrica' ); ?>
112
  </label><br>
113
- <label><input type="checkbox" <?php checked( $this->options['accurate_track'] ); ?> name="metrica_accurate_track" value="1"> <?php _e( 'Accurate Track Bounce', 'yandex_metrica' ); ?>
114
  </label><br>
115
- <label><input type="checkbox" <?php checked( $this->options['track_hash'] ); ?> name="track_hash" value="1"> <?php _e( "Hash tracking in the browser's address bar", 'yandex_metrica' ); ?>
116
  </label><br>
117
  </td>
118
  </tr>
119
 
120
  <tr valign="top">
121
  <th>
122
- <label><?php _e( 'Track logged in users', 'yandex_metrica' ); ?></label>
123
  </th>
124
  <td>
125
  <select name="track-logged-in">
126
- <option <?php selected( $this->options["track-logged-in"] ); ?> value="yes"><?php _e( 'Yes', 'yandex_metrica' ); ?></option>
127
- <option <?php selected( $this->options["track-logged-in"], false ); ?> value="no"><?php _e( 'No', 'yandex_metrica' ); ?></option>
128
  </select>
129
  </td>
130
  </tr>
131
 
132
  <tr valign="top">
133
  <th>
134
- <label><?php _e( 'User roles to not track', 'yandex_metrica' ); ?></label>
135
  </th>
136
  <td>
137
  <?php
@@ -144,13 +151,13 @@ if ( isset( $_POST["reset"] ) ) {
144
  <br />
145
  <?php endforeach; ?>
146
 
147
- <p class="setting-description"><?php _e( "If a user is logged into with one of these roles, they won't track by metrica.", 'yandex_metrica' ); ?></p>
148
  </td>
149
  </tr>
150
  <?php if ( $this->options["backward"] === false ): ?>
151
  <tr valign="top">
152
  <th>
153
- <label><?php _e( 'User roles to display dashboard widget', 'yandex_metrica' ); ?></label>
154
  </th>
155
  <td>
156
  <?php
@@ -164,7 +171,7 @@ if ( isset( $_POST["reset"] ) ) {
164
 
165
  <?php endforeach; ?>
166
 
167
- <p class="setting-description"><?php _e( 'Selected roles can display metrica statistic on the dashboard.', 'yandex_metrica' ); ?></p>
168
  </td>
169
  </tr>
170
  <?php endif; ?>
@@ -172,8 +179,8 @@ if ( isset( $_POST["reset"] ) ) {
172
  </table>
173
 
174
  <div class="save">
175
- <?php submit_button( __( 'Save', 'yandex_metrica' ), 'primary', 'yandex-metrica-save', false ); ?>
176
- <input type="submit" name="reset" value="<?php echo __( 'Reset', 'yandex_metrica' ); ?>" class="button-secondary" />
177
  </div>
178
 
179
  <?php endif; ?>
1
  <?php if ( ! defined( 'ABSPATH' ) ) die(); ?>
2
 
3
  <?php
4
+
5
+ if ( ! empty( $_POST ) && ( ! current_user_can( 'manage_options' ) || empty( $_REQUEST['metrica_settings_nonce'] ) || ! wp_verify_nonce( $_REQUEST['metrica_settings_nonce'], 'metrica_update_settings' ) ) ) {
6
+ wp_die( esc_html__( 'Cheatin, uh?', 'yandex-metrica' ) );
7
+ }
8
+
9
+
10
  if ( isset( $_POST['yandex-metrica-authorize'] ) ) {
11
  $this->options['authcode'] = intval( $_POST['auth-code'] );
12
 
13
  if ( $this->authorize( esc_attr( $this->options['authcode'] ) ) ) {
14
+ echo '<div class="updated"><p>' . __( 'Successfully connected to Yandex Server', 'yandex-metrica' ) . '</p></div>';
15
  }
16
  else {
17
+ echo '<div class="error"><p>' . __( 'Something went wrong. Please check your confirmation code!', 'yandex-metrica' ) . '</p></div>';
18
  }
19
  }
20
 
37
 
38
 
39
  if ( is_numeric( $_POST["metrica-counter"] ) ) {
40
+ echo '<div class="updated"><p>' . __( 'Options Saved!', 'yandex-metrica' ) . '</p></div>';
41
  }
42
  else {
43
+ echo '<div class="error fade"><p>' . __( "Please enter a valid counter code!", "yandex-metrica" ) . '</a></p></div>';
44
  $this->options["counter_id"] = null;
45
  }
46
 
53
  $this->update_options( null );
54
  $this->options = $this->get_options(); // call default options
55
 
56
+ echo ' <div class="updated"><p>' . __( 'All options cleared!', 'yandex-metrica' ) . '</p></div>';
57
  }
58
 
59
  ?>
62
 
63
  <div class="wrap">
64
  <form method="post" action="">
65
+ <?php wp_nonce_field( 'metrica_update_settings', 'metrica_settings_nonce' ); ?>
66
 
67
+ <h2><?php _e( 'Yandex Metrica', 'yandex-metrica' ); ?></h2>
68
 
69
  <?php if ( ! $this->is_authorized() && $this->options["backward"] === false ) : ?>
70
+ <p><?php _e( 'You need sign in to Yandex and grant this plugin access to your Yandex Metrica account.', 'yandex-metrica' ); ?></p>
71
+ <p class="button" onclick="window.open('<?php printf('%sauthorize?response_type=code&client_id=%s&display=popup',__('https://oauth.yandex.com/','yandex-metrica'), self::YANDEX_APP_ID); ?>', 'activate','width=600, height=500, menubar=0, status=0, location=0, toolbar=0')">
72
+ <a style="text-decoration: none;" target="_blank" href="javascript:void(0);"><b><?php _e( 'Click here to getting confirmation code', 'yandex-metrica' ); ?></b></a>
73
  </p>
74
 
75
  <div id="metrica-settings">
76
+ <input type="text" name="auth-code" placeholder="<?php _e( 'Enter Confirmation code here', 'yandex-metrica' ); ?>" style="width: 300px;" />
77
+ <?php submit_button( __( 'Save', 'yandex-metrica' ), 'primary', 'yandex-metrica-authorize', false ); ?>
78
  </div>
79
 
80
  <hr>
81
+ <p><?php _e( "If you don't want to use API, you can use basic mode.", "yandex-metrica" ); ?></p>
82
+ <?php submit_button( __( 'Basic Mode (Compatible with Backward)', 'yandex-metrica' ), 'button', 'backward', false ); ?>
83
 
84
 
85
  <?php else: ?>
86
  <?php if ( $this->options["backward"] === false ): ?>
87
  <?php if ( ! is_null( self::$metrica_api->get_counters() ) ): ?>
88
+ <label for="metrica-counter"><?php _e( 'Counter:', 'yandex-metrica' ); ?></label>
89
  <select name="metrica-counter" id="metrica-counter">
90
  <?php foreach ( self::$metrica_api->get_counters() as $counter ): ?>
91
  <option <?php if ( ! empty( $this->options["counter_id"] ) ) selected( $this->options["counter_id"], $counter['id'] ); ?> value="<?php echo $counter['id']; ?>"><?php echo $counter['site']; ?></option>
92
  <?php endforeach; ?>
93
  </select>
94
  <?php else:
95
+ echo '<div class="error"><p>' . __( 'Temporary, getting connectivity problem.!', 'yandex-metrica' ) . '</p></div>';
96
  ?>
97
  <br />
98
  <?php endif; ?>
99
  <?php else: ?>
100
+ <input type="text" name="metrica-counter" <?php if ( isset( $this->options["counter_id"] ) ) echo 'value="' . esc_attr( $this->options["counter_id"] ) . '"'; ?> placeholder="<?php _e( 'Enter counter number', 'yandex-metrica' ); ?>" style="width:300px;" metrica-counter" />
101
  <?php endif; ?>
102
 
103
+ <h3><?php _e( 'Tracking Settings', 'yandex-metrica' ); ?></h3>
104
 
105
  <table class="form-table">
106
 
108
 
109
  <tr valign="top">
110
  <th>
111
+ <label><?php _e( 'Select tracking options', 'yandex-metrica' ); ?></label>
112
  </th>
113
  <td>
114
+ <label><input type="checkbox" <?php checked( $this->options['webvisor'] ); ?> name="metrica_webvisor" value="1"> <?php _e( 'Webvisor', 'yandex-metrica' ) ?>
115
  </label><br>
116
+ <label><input type="checkbox" <?php checked( $this->options['clickmap'] ); ?> name="metrica_clickmap" value="1"> <?php _e( 'Track Clickmap', 'yandex-metrica' ); ?>
117
  </label><br>
118
+ <label><input type="checkbox" <?php checked( $this->options['tracklinks'] ); ?> name="metrica_tracklinks" value="1"> <?php _e( 'Track Links, social sharing, file requests...', 'yandex-metrica' ); ?>
119
  </label><br>
120
+ <label><input type="checkbox" <?php checked( $this->options['accurate_track'] ); ?> name="metrica_accurate_track" value="1"> <?php _e( 'Accurate Track Bounce', 'yandex-metrica' ); ?>
121
  </label><br>
122
+ <label><input type="checkbox" <?php checked( $this->options['track_hash'] ); ?> name="track_hash" value="1"> <?php _e( "Hash tracking in the browser's address bar", 'yandex-metrica' ); ?>
123
  </label><br>
124
  </td>
125
  </tr>
126
 
127
  <tr valign="top">
128
  <th>
129
+ <label><?php _e( 'Track logged in users', 'yandex-metrica' ); ?></label>
130
  </th>
131
  <td>
132
  <select name="track-logged-in">
133
+ <option <?php selected( $this->options["track-logged-in"] ); ?> value="yes"><?php _e( 'Yes', 'yandex-metrica' ); ?></option>
134
+ <option <?php selected( $this->options["track-logged-in"], false ); ?> value="no"><?php _e( 'No', 'yandex-metrica' ); ?></option>
135
  </select>
136
  </td>
137
  </tr>
138
 
139
  <tr valign="top">
140
  <th>
141
+ <label><?php _e( 'User roles to not track', 'yandex-metrica' ); ?></label>
142
  </th>
143
  <td>
144
  <?php
151
  <br />
152
  <?php endforeach; ?>
153
 
154
+ <p class="setting-description"><?php _e( "If a user is logged into with one of these roles, they won't track by metrica.", 'yandex-metrica' ); ?></p>
155
  </td>
156
  </tr>
157
  <?php if ( $this->options["backward"] === false ): ?>
158
  <tr valign="top">
159
  <th>
160
+ <label><?php _e( 'User roles to display dashboard widget', 'yandex-metrica' ); ?></label>
161
  </th>
162
  <td>
163
  <?php
171
 
172
  <?php endforeach; ?>
173
 
174
+ <p class="setting-description"><?php _e( 'Selected roles can display metrica statistic on the dashboard.', 'yandex-metrica' ); ?></p>
175
  </td>
176
  </tr>
177
  <?php endif; ?>
179
  </table>
180
 
181
  <div class="save">
182
+ <?php submit_button( __( 'Save', 'yandex-metrica' ), 'primary', 'yandex-metrica-save', false ); ?>
183
+ <input type="submit" name="reset" value="<?php echo __( 'Reset', 'yandex-metrica' ); ?>" class="button-secondary" />
184
  </div>
185
 
186
  <?php endif; ?>
templates/tracker-js.php CHANGED
@@ -9,7 +9,7 @@
9
  clickmap:<?php echo $this->options["clickmap"]?"true":"false";?>,
10
  trackLinks:<?php echo $this->options["tracklinks"]?"true":"false";?>,
11
  accurateTrackBounce:<?php echo $this->options["accurate_track"]?"true":"false";?>,
12
- trackHash:<?php echo $this->options["hash_track"]?"true":"false";?>});
13
  } catch(e) { }
14
  });
15
 
9
  clickmap:<?php echo $this->options["clickmap"]?"true":"false";?>,
10
  trackLinks:<?php echo $this->options["tracklinks"]?"true":"false";?>,
11
  accurateTrackBounce:<?php echo $this->options["accurate_track"]?"true":"false";?>,
12
+ trackHash:<?php echo $this->options["track_hash"]?"true":"false";?>});
13
  } catch(e) { }
14
  });
15
 
yandex-metrica.php CHANGED
@@ -4,8 +4,8 @@ Plugin Name: Yandex Metrica
4
  Plugin URI: http://uysalmustafa.com/plugins/yandex-metrica
5
  Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
6
  Author: Mustafa Uysal
7
- Version: 1.3
8
- Text Domain: yandex_metrica
9
  Domain Path: /languages/
10
  Author URI: http://uysalmustafa.com
11
  License: GPLv2 (or later)
@@ -47,7 +47,7 @@ class WP_Yandex_Metrica extends WP_Stack_Plugin {
47
 
48
  public function init() {
49
  // Load langauge pack
50
- load_plugin_textdomain( 'yandex_metrica', false, basename( dirname( __FILE__ ) ) . '/languages' );
51
 
52
  $this->hook( 'admin_menu' );
53
  $this->hook( 'wp_footer' ); // using wp_footer for adding tracking code. If you theme don't have it, this plugin can't track your site.
@@ -75,17 +75,18 @@ class WP_Yandex_Metrica extends WP_Stack_Plugin {
75
  'clickmap' => true,
76
  'tracklinks' => true,
77
  'accurate_track' => false,
 
78
  'track-logged-in' => true,
79
  'untrack-roles' => array( "administrator" ),
80
  'widget-access-roles' => array( "administrator" ),
81
- 'backward' => false
82
  );
83
  return wp_parse_args( get_option( self::OPTION ), $defaults );
84
  }
85
 
86
 
87
  public function admin_menu() {
88
- add_options_page( __('Yandex Metrica', 'yandex_metrica'), __('Yandex Metrica', 'yandex_metrica'), 'manage_options', self::MENU_SLUG, array( $this, 'metrica_settings_page' ) );
89
  }
90
 
91
 
@@ -122,7 +123,7 @@ class WP_Yandex_Metrica extends WP_Stack_Plugin {
122
  global $wp_roles;
123
 
124
  if ( ! current_user_can( 'manage_options' ) ) {
125
- wp_die( __( 'You do not have sufficient permissions to access this page.', 'yandex_metrica' ) );
126
  }
127
  include( dirname( __FILE__ ) . '/templates/settings.php' );
128
  }
@@ -135,22 +136,22 @@ class WP_Yandex_Metrica extends WP_Stack_Plugin {
135
  if ( self::$metrica_api->is_valid_counter( $this->options["counter_id"] ) ) {
136
 
137
  $this->hook( 'admin_head', 'dashboard_chart_js' ); // add neccessary jsc
138
- wp_add_dashboard_widget( 'yandex_metrica_widget', __( 'Metrica Statistics', 'yandex_metrica' ), array( $this, 'metrica_dashboard_widget' ) );
139
  }
140
  else {
141
- wp_add_dashboard_widget( 'yandex_metrica_widget', __( 'Metrica Statistics', 'yandex_metrica' ), array( $this, 'temporary_dashboard_widget' ) );
142
  }
143
 
144
  }
145
 
146
 
147
  public function temporary_dashboard_widget() {
148
- echo '<p><b>' . __( 'Oh no! There is nothing to display. Here Are the Possible Causes', 'yandex_metrica' ) . '</b></p>';
149
- echo '<ol><li>' . __( 'If selected a new counter (recently created), please give a few hours for verification. Please be patient.', 'yandex_metrica' ) . '</li>';
150
- echo '<li>' . __( 'Did you save options? You need to save options at least once after account confirmation.', 'yandex_metrica' ) . '</li>';
151
- echo '<li>' . __( 'Are you sure you selected the correct counter? Please confirm.', 'yandex_metrica' ) . '</li>';
152
- echo '<li>' . __( 'Did you change your Yandex password? If changed, you need to re-authorize this plugin.', 'yandex_metrica' ) . '</li>';
153
- echo '<li>' . __( 'Temporary, connectivity problem!', 'yandex_metrica' ) . '</li><ol>';
154
  }
155
 
156
 
@@ -168,7 +169,7 @@ class WP_Yandex_Metrica extends WP_Stack_Plugin {
168
  ?>
169
  <script type="text/javascript">
170
  jQuery(document).ready(function ($) {
171
- jQuery('#yandex_metrica_widget h3.hndle span').append('<span class="postbox-title-action"><a href="http://metrica.yandex.com" class="edit-box open-box"><?php _e('View Full Report', 'yandex_metrica');?></a></span>');
172
 
173
  $(document).on("change", "#period", function () {
174
 
4
  Plugin URI: http://uysalmustafa.com/plugins/yandex-metrica
5
  Description: Best metrica plugin for the use Yandex Metrica in your WordPress site.
6
  Author: Mustafa Uysal
7
+ Version: 1.4
8
+ Text Domain: yandex-metrica
9
  Domain Path: /languages/
10
  Author URI: http://uysalmustafa.com
11
  License: GPLv2 (or later)
47
 
48
  public function init() {
49
  // Load langauge pack
50
+ load_plugin_textdomain( 'yandex-metrica', false, basename( dirname( __FILE__ ) ) . '/languages' );
51
 
52
  $this->hook( 'admin_menu' );
53
  $this->hook( 'wp_footer' ); // using wp_footer for adding tracking code. If you theme don't have it, this plugin can't track your site.
75
  'clickmap' => true,
76
  'tracklinks' => true,
77
  'accurate_track' => false,
78
+ 'track_hash' => false,
79
  'track-logged-in' => true,
80
  'untrack-roles' => array( "administrator" ),
81
  'widget-access-roles' => array( "administrator" ),
82
+ 'backward' => false,
83
  );
84
  return wp_parse_args( get_option( self::OPTION ), $defaults );
85
  }
86
 
87
 
88
  public function admin_menu() {
89
+ add_options_page( __('Yandex Metrica', 'yandex-metrica'), __('Yandex Metrica', 'yandex-metrica'), 'manage_options', self::MENU_SLUG, array( $this, 'metrica_settings_page' ) );
90
  }
91
 
92
 
123
  global $wp_roles;
124
 
125
  if ( ! current_user_can( 'manage_options' ) ) {
126
+ wp_die( __( 'You do not have sufficient permissions to access this page.', 'yandex-metrica' ) );
127
  }
128
  include( dirname( __FILE__ ) . '/templates/settings.php' );
129
  }
136
  if ( self::$metrica_api->is_valid_counter( $this->options["counter_id"] ) ) {
137
 
138
  $this->hook( 'admin_head', 'dashboard_chart_js' ); // add neccessary jsc
139
+ wp_add_dashboard_widget( 'yandex_metrica_widget', __( 'Metrica Statistics', 'yandex-metrica' ), array( $this, 'metrica_dashboard_widget' ) );
140
  }
141
  else {
142
+ wp_add_dashboard_widget( 'yandex_metrica_widget', __( 'Metrica Statistics', 'yandex-metrica' ), array( $this, 'temporary_dashboard_widget' ) );
143
  }
144
 
145
  }
146
 
147
 
148
  public function temporary_dashboard_widget() {
149
+ echo '<p><b>' . __( 'Oh no! There is nothing to display. Here Are the Possible Causes', 'yandex-metrica' ) . '</b></p>';
150
+ echo '<ol><li>' . __( 'If selected a new counter (recently created), please give a few hours for verification. Please be patient.', 'yandex-metrica' ) . '</li>';
151
+ echo '<li>' . __( 'Did you save options? You need to save options at least once after account confirmation.', 'yandex-metrica' ) . '</li>';
152
+ echo '<li>' . __( 'Are you sure you selected the correct counter? Please confirm.', 'yandex-metrica' ) . '</li>';
153
+ echo '<li>' . __( 'Did you change your Yandex password? If changed, you need to re-authorize this plugin.', 'yandex-metrica' ) . '</li>';
154
+ echo '<li>' . __( 'Temporary, connectivity problem!', 'yandex-metrica' ) . '</li><ol>';
155
  }
156
 
157
 
169
  ?>
170
  <script type="text/javascript">
171
  jQuery(document).ready(function ($) {
172
+ jQuery('#yandex_metrica_widget h3.hndle span').append('<span class="postbox-title-action"><a href="http://metrica.yandex.com" class="edit-box open-box"><?php _e('View Full Report', 'yandex-metrica');?></a></span>');
173
 
174
  $(document).on("change", "#period", function () {
175