diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2019-09-08 17:41:18 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2019-09-08 17:41:18 +0100 |
| commit | 26420f84cb96928cdc566963a4499db677a38ff9 (patch) | |
| tree | df813df888b3910f77fd005dd00e8f4123c4c958 /resources/views | |
| parent | 262f5d98c49e79ed4bfec27d10edb41dff74d341 (diff) | |
| download | webtrees-26420f84cb96928cdc566963a4499db677a38ff9.tar.gz webtrees-26420f84cb96928cdc566963a4499db677a38ff9.tar.bz2 webtrees-26420f84cb96928cdc566963a4499db677a38ff9.zip | |
Fix: #2568 - Matomo analytics - wrong variable names
Diffstat (limited to 'resources/views')
| -rw-r--r-- | resources/views/modules/matomo-analytics/form.phtml | 10 | ||||
| -rw-r--r-- | resources/views/modules/matomo-analytics/snippet.phtml | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/resources/views/modules/matomo-analytics/form.phtml b/resources/views/modules/matomo-analytics/form.phtml index 8fce201551..e47a48bb1a 100644 --- a/resources/views/modules/matomo-analytics/form.phtml +++ b/resources/views/modules/matomo-analytics/form.phtml @@ -1,21 +1,21 @@ <?php use Fisharebest\Webtrees\I18N; ?> <div class="row form-group"> - <label for="PIWIK_SITE_ID" class="col-sm-3 col-form-label"> + <label for="MATOMO_SITE_ID" class="col-sm-3 col-form-label"> <?= /* I18N: A configuration setting */ I18N::translate('Site identification code') ?> </label> <div class="col-sm-9"> - <input type="text" class="form-control" id="PIWIK_SITE_ID" name="PIWIK_SITE_ID" value="<?= e($PIWIK_SITE_ID ?? '') ?>" maxlength="255" pattern="[0-9]+"> + <input type="text" class="form-control" id="MATOMO_SITE_ID" name="MATOMO_SITE_ID" value="<?= e($MATOMO_SITE_ID ?? '') ?>" maxlength="255" pattern="[0-9]+"> </div> </div> -<!-- PIWIK_URL --> +<!-- MATOMO_URL --> <div class="row form-group"> - <label for="PIWIK_URL" class="col-sm-3 col-form-label"> + <label for="MATOMO_URL" class="col-sm-3 col-form-label"> <?= /* I18N: A configuration setting */ I18N::translate('URL') ?> </label> <div class="col-sm-9"> - <input type="text" class="form-control" id="PIWIK_URL" name="PIWIK_URL" value="<?= e($PIWIK_URL ?? '') ?>" placeholder="//example.com/piwik/" maxlength="255"> + <input type="text" class="form-control" id="MATOMO_URL" name="MATOMO_URL" value="<?= e($MATOMO_URL ?? '') ?>" placeholder="//example.com/piwik/" maxlength="255"> </div> </div> diff --git a/resources/views/modules/matomo-analytics/snippet.phtml b/resources/views/modules/matomo-analytics/snippet.phtml index c81a17f402..b44d86ca8c 100644 --- a/resources/views/modules/matomo-analytics/snippet.phtml +++ b/resources/views/modules/matomo-analytics/snippet.phtml @@ -3,9 +3,9 @@ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { - var u=<?= json_encode($PIWIK_URL ?? '') ?>; + var u=<?= json_encode($MATOMO_URL ?? '') ?>; _paq.push(['setTrackerUrl', u+'piwik.php']); - _paq.push(['setSiteId', <?= json_encode($PIWIK_SITE_ID ?? '') ?>]); + _paq.push(['setSiteId', <?= json_encode($MATOMO_SITE_ID ?? '') ?>]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); |
