Plugin Directory

Changeset 1974668


Ignore:
Timestamp:
11/15/2018 06:41:01 AM (7 years ago)
Author:
sergiorcs
Message:

Added option to disable cookies.

Location:
piwik-tracking-by-mente-binaria/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • piwik-tracking-by-mente-binaria/trunk/assets/i18n/piwik-tracking-by-mente-binaria.pot

    r1970556 r1974668  
    66"Project-Id-Version: Matomo tracking, by Sergio Santos\n"
    77"Report-Msgid-Bugs-To: https://www.sergiosantos.me\n"
    8 "POT-Creation-Date: 2017-09-21 11:42+0100\n"
     8"POT-Creation-Date: 2018-11-15 06:36+0000\n"
    99"PO-Revision-Date: 2018-11-07 20:01+0000\n"
    1010"MIME-Version: 1.0\n"
     
    1313"Last-Translator: \n"
    1414"Language-Team: \n"
    15 "X-Generator: Poedit 1.8.7.1\n"
     15"X-Generator: Poedit 2.0.6\n"
    1616"X-Poedit-KeywordsList: __;_e\n"
    1717"X-Poedit-Basepath: ../..\n"
    1818"X-Poedit-SearchPath-0: .\n"
    1919
    20 #: views/backend/settings.class.php:32 views/backend/settings.class.php:69
     20#: views/backend/settings.class.php:32 views/backend/settings.class.php:70
    2121msgid "Matomo tracking settings"
    2222msgstr ""
     
    4343
    4444#: views/backend/settings.class.php:39
     45msgid "Disable cookies"
     46msgstr ""
     47
     48#: views/backend/settings.class.php:40
    4549msgid "Log usernames"
    4650msgstr ""
    4751
    48 #: views/backend/settings.class.php:40
     52#: views/backend/settings.class.php:41
    4953msgid "Heartbeat timer"
    5054msgstr ""
    5155
    52 #: views/backend/settings.class.php:54
     56#: views/backend/settings.class.php:55
    5357msgid "Settings"
    5458msgstr ""
    5559
    56 #: views/backend/settings.class.php:96
     60#: views/backend/settings.class.php:97
    5761msgid "Enable Matomo tracking?"
    5862msgstr ""
    5963
    60 #: views/backend/settings.class.php:102
     64#: views/backend/settings.class.php:103
    6165#, php-format
    6266msgid "The address of your Matomo install, without protocol (e.g. %s/matomo)."
    6367msgstr ""
    6468
    65 #: views/backend/settings.class.php:108
     69#: views/backend/settings.class.php:109
    6670msgid "Does your Matomo install support SSL access? (HTTP<b>S</b>://)"
    6771msgstr ""
    6872
    69 #: views/backend/settings.class.php:114
     73#: views/backend/settings.class.php:115
    7074msgid "The id of this site on your Matomo install."
    7175msgstr ""
    7276
    73 #: views/backend/settings.class.php:120
     77#: views/backend/settings.class.php:121
     78msgid "Do you want to Matomo to use cookies?<br/>(Disabling cookies will make some data less accurate.)"
     79msgstr ""
     80
     81#: views/backend/settings.class.php:127
    7482msgid "Do you want Matomo to log the usernames of logged in users?"
    7583msgstr ""
    7684
    77 #: views/backend/settings.class.php:126
     85#: views/backend/settings.class.php:133
    7886msgid "The time between heartbeats, in seconds. Set 0 to disable.<br/>(If you're unsure of what this is, it's better to leave it disabled.)"
    7987msgstr ""
    8088
    81 #: views/backend/settings.class.php:147
     89#: views/backend/settings.class.php:154
    8290msgid "The \"Address\" seems invalid.<br />Please check this field and try again."
    8391msgstr ""
    8492
    85 #: views/backend/settings.class.php:150
     93#: views/backend/settings.class.php:157
    8694msgid "\"Site Id\" must be an integer number greater than zero.<br />Please check this field and try again."
    8795msgstr ""
    8896
    89 #: views/backend/settings.class.php:153
     97#: views/backend/settings.class.php:160
    9098msgid "\"Heartbeat timer\" must be an integer number equal to or greater than zero.<br />Please check this field and try again."
    9199msgstr ""
  • piwik-tracking-by-mente-binaria/trunk/assets/i18n/pt_PT.po

    r1970556 r1974668  
    55"Project-Id-Version: Matomo tracking, by Sergio Santos\n"
    66"Report-Msgid-Bugs-To: https://www.sergiosantos.me\n"
    7 "POT-Creation-Date: 2017-09-21 11:43+0100\n"
    8 "PO-Revision-Date: 2018-11-07 20:01+0000\n"
     7"POT-Creation-Date: 2018-11-15 06:36+0000\n"
     8"PO-Revision-Date: 2018-11-15 06:39+0000\n"
    99"Last-Translator: Sergio Santos <ipse@sergiosantos.me>\n"
    1010"Language-Team: \n"
     
    1616"Plural-Forms: nplurals=2; plural=(n != 1);\n"
    1717
    18 #: views/backend/settings.class.php:32 views/backend/settings.class.php:69
     18#: views/backend/settings.class.php:32 views/backend/settings.class.php:70
    1919msgid "Matomo tracking settings"
    2020msgstr "Configurações do rastreamento Matomo"
     
    4141
    4242#: views/backend/settings.class.php:39
     43msgid "Disable cookies"
     44msgstr "Desativar cookies"
     45
     46#: views/backend/settings.class.php:40
    4347msgid "Log usernames"
    4448msgstr "Rastrear nomes de utilizador"
    4549
    46 #: views/backend/settings.class.php:40
     50#: views/backend/settings.class.php:41
    4751msgid "Heartbeat timer"
    4852msgstr "Temporizador Heartbeat"
    4953
    50 #: views/backend/settings.class.php:54
     54#: views/backend/settings.class.php:55
    5155msgid "Settings"
    5256msgstr "Configurações"
    5357
    54 #: views/backend/settings.class.php:96
     58#: views/backend/settings.class.php:97
    5559msgid "Enable Matomo tracking?"
    5660msgstr "Ativar o rastreamento Matomo?"
    5761
    58 #: views/backend/settings.class.php:102
     62#: views/backend/settings.class.php:103
    5963#, php-format
    6064msgid "The address of your Matomo install, without protocol (e.g. %s/matomo)."
    6165msgstr "O endereço da sua instalação do Matomo, sem protocolo (ex. %s/matomo)."
    6266
    63 #: views/backend/settings.class.php:108
     67#: views/backend/settings.class.php:109
    6468msgid "Does your Matomo install support SSL access? (HTTP<b>S</b>://)"
    6569msgstr "A sua instalação do Matomo suporta acesso SSL? (HTTP<b>S</b>://)"
    6670
    67 #: views/backend/settings.class.php:114
     71#: views/backend/settings.class.php:115
    6872msgid "The id of this site on your Matomo install."
    6973msgstr "A Id deste site na sua instalação do Matomo."
    7074
    71 #: views/backend/settings.class.php:120
     75#: views/backend/settings.class.php:121
     76msgid ""
     77"Do you want to Matomo to use cookies?<br/>(Disabling cookies will make some "
     78"data less accurate.)"
     79msgstr ""
     80"Deseja que o Matomo use cookies?<br/>(Desativar as cookies tornará alguns "
     81"dados menos exatos.)"
     82
     83#: views/backend/settings.class.php:127
    7284msgid "Do you want Matomo to log the usernames of logged in users?"
    7385msgstr ""
    7486"Deseja que o Matomo rastreie os nomes de utilizador de utilizadores logados?"
    7587
    76 #: views/backend/settings.class.php:126
     88#: views/backend/settings.class.php:133
    7789msgid ""
    7890"The time between heartbeats, in seconds. Set 0 to disable.<br/>(If you're "
     
    8294"estiver incerto de o que isto é, é melhor deixá-lo desativado.)"
    8395
    84 #: views/backend/settings.class.php:147
     96#: views/backend/settings.class.php:154
    8597msgid ""
    8698"The \"Address\" seems invalid.<br />Please check this field and try again."
     
    89101"novamente."
    90102
    91 #: views/backend/settings.class.php:150
     103#: views/backend/settings.class.php:157
    92104msgid ""
    93105"\"Site Id\" must be an integer number greater than zero.<br />Please check "
     
    97109"verifique este campo e tente novamente."
    98110
    99 #: views/backend/settings.class.php:153
     111#: views/backend/settings.class.php:160
    100112msgid ""
    101113"\"Heartbeat timer\" must be an integer number equal to or greater than zero."
  • piwik-tracking-by-mente-binaria/trunk/models/options.class.php

    r1873093 r1974668  
    109109            'ssl_compat' => false,
    110110            'site_id' => 0,
     111            'enable_cookies' => 1,
    111112            'log_usernames' => false,
    112             'heartbeat_timer' => 0
     113            'heartbeat_timer' => 0,
    113114        );
    114115        return $defaults;
  • piwik-tracking-by-mente-binaria/trunk/views/backend/settings.class.php

    r1873093 r1974668  
    3737        add_settings_field( 'SS_MatomoTracking-ssl_compat', __( 'SSL compatibility', SS_MATOMOTRACKING_SLUG ), array( 'SS_MatomoTracking_ControllerBackend', 'output_settings_field' ), SS_MATOMOTRACKING_SLUG, 'general', array( 'label_for' => 'SS_MatomoTracking-ssl_compat' ) );
    3838        add_settings_field( 'SS_MatomoTracking-site_id', __( 'Site Id', SS_MATOMOTRACKING_SLUG ), array( 'SS_MatomoTracking_ControllerBackend', 'output_settings_field' ), SS_MATOMOTRACKING_SLUG, 'general', array( 'label_for' => 'SS_MatomoTracking-site_id') );
     39        add_settings_field( 'SS_MatomoTracking-disable_cookies', __( 'Disable cookies', SS_MATOMOTRACKING_SLUG ), array( 'SS_MatomoTracking_ControllerBackend', 'output_settings_field' ), SS_MATOMOTRACKING_SLUG, 'general', array( 'label_for' => 'SS_MatomoTracking-disable_cookies' ) );
    3940        add_settings_field( 'SS_MatomoTracking-log_usernames', __( 'Log usernames', SS_MATOMOTRACKING_SLUG ), array( 'SS_MatomoTracking_ControllerBackend', 'output_settings_field' ), SS_MATOMOTRACKING_SLUG, 'general', array( 'label_for' => 'SS_MatomoTracking-log_usernames' ) );
    4041        add_settings_field( 'SS_MatomoTracking-heartbeat_timer', __( 'Heartbeat timer', SS_MATOMOTRACKING_SLUG ), array( 'SS_MatomoTracking_ControllerBackend', 'output_settings_field' ), SS_MATOMOTRACKING_SLUG, 'general', array( 'label_for' => 'SS_MatomoTracking-heartbeat_timer' ) );
     
    115116<?php
    116117                break;
     118            case 'enable_cookies':
     119?>
     120<input id="SS_MatomoTracking-<?php echo $name; ?>" name="SS_MatomoTracking[<?php echo $name; ?>]" type="checkbox" value="1"<?php echo $value ? ' checked="checked"' : ''; ?> />
     121<p class="description"><?php _e( 'Do you want to Matomo to use cookies?<br/>(Disabling cookies will make some data less accurate.)', SS_MATOMOTRACKING_SLUG ); ?></p>
     122<?php
     123                break;
    117124            case 'log_usernames':
    118125?>
  • piwik-tracking-by-mente-binaria/trunk/views/frontend/script.class.php

    r1970528 r1974668  
    3131<!-- Matomo -->
    3232<script type="text/javascript">var _paq = window._paq || []; <?php
     33        if ( !$options['enable_cookies'] ) {
     34            echo '_paq.push(["disableCookies"]); ';
     35        }
    3336        $customVars = array();
    3437        if ( $options['log_usernames'] && isset( $data['username'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.