1
0
Fork 0

Piwik -> Matomo

This commit is contained in:
Lukas Winkler 2018-01-09 17:58:03 +01:00
parent eb3fc1c120
commit bf7471e58f
13 changed files with 39 additions and 39 deletions

View file

@ -10,7 +10,7 @@ Try it, it's easy to setup! No database needed
## Setup
* `git clone git@github.com:piwik/github-issues-mirror.git`
* `git clone git@github.com:matomo-org/github-issues-mirror.git`
* `cd github-issues-mirror/src`
* `curl -s https://getcomposer.org/installer | php`
* `php composer.phar install`

View file

@ -1,20 +1,20 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
/**
* Will be displayed in the UI.
*/
define('PROJECT_NAME', 'Piwik');
define('PROJECT_NAME', 'Matomo');
/**
* Emails will be sent to this address in case anything goes wrong during the import.
*/
define('PROJECT_EMAIL', 'developer@piwik.org');
define('PROJECT_EMAIL', 'developer@matomo.org');
/**
* You can create a new application on the application settings page: https://github.com/settings/applications/new .
@ -23,7 +23,7 @@ define('PROJECT_EMAIL', 'developer@piwik.org');
*/
define('GITHUB_CLIENT_ID', '');
define('GITHUB_CLIENT_SECRET', '');
define('GITHUB_ORGANIZATION', 'piwik');
define('GITHUB_ORGANIZATION', 'matomo-org');
define('GITHUB_REPOSITORY', 'piwik');
define('NUMBER_OF_ISSUES_PER_PAGE', 100);
@ -35,12 +35,12 @@ define('DEBUG_ENABLED', false);
/**
* Set list of file extensions that should be disallowed in links
* see https://github.com/piwik/github-issues-mirror/issues/5
* see https://github.com/matomo-org/github-issues-mirror/issues/5
*/
define('FORBIDDEN_EXTENSIONS', ['swf', 'js', 'html', 'htm']);
/**
* If you want to enable piwik tracking enter the URL to your piwik instance and the ID of the website here
*/
define('PIWIK_URL', false);
define('PIWIK_ID', false);
define('MATOMO_URL', false);
define('MATOMO_ID', false);

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
@ -40,9 +40,9 @@ class Markdown extends \Parsedown
/**
* <a href="http://issues.piwik.org/attachments/1199/swelen_dateslider.swf">swelen_dateslider.swf</a>
* <a href="http://issues.matomo.org/attachments/1199/swelen_dateslider.swf">swelen_dateslider.swf</a>
* to
* <a href="http://issues.piwik.org/">swelen_dateslider.swf</a>
* <a href="http://issues.matomo.org/">swelen_dateslider.swf</a>
* @param $html
* @return string html
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
@ -39,8 +39,8 @@ $container['view'] = function ($container) {
$view->getEnvironment()->addGlobal('projectName', PROJECT_NAME);
$view->getEnvironment()->addGlobal('githubOrganization', GITHUB_ORGANIZATION);
$view->getEnvironment()->addGlobal('githubRepository', GITHUB_REPOSITORY);
$view->getEnvironment()->addGlobal('piwikURL', PIWIK_URL);
$view->getEnvironment()->addGlobal('piwikID', PIWIK_ID);
$view->getEnvironment()->addGlobal('matomoURL', MATOMO_URL);
$view->getEnvironment()->addGlobal('matomoID', MATOMO_ID);
return $view;
};

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

View file

@ -1,8 +1,8 @@
<?php
/**
* Piwik - free/libre analytics platform
* Matomo - free/libre analytics platform
*
* @link http://piwik.org
* @link https://matomo.org/
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/

View file

@ -20,22 +20,22 @@
<div class="container" style="margin-bottom: 20px;">
<div class="row">
<div class="col-md-6">
Powered by <a target="_blank" href="https://github.com/piwik/github-issues-mirror">GitHub Issue Mirror</a>
Powered by <a target="_blank" href="https://github.com/matomo-org/github-issues-mirror">GitHub Issue Mirror</a>
</div>
</div>
</div>
{% if piwikURL and piwikID %}
<!-- Piwik -->
{% if matomoURL and matomoID %}
<!-- Matomo -->
<script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "{{ piwikURL }}";
var u = "{{ matomoURL }}";
_paq.push(['setTrackerUrl', u + 'piwik.php']);
_paq.push(['setSiteId', '{{ piwikID }}']);
_paq.push(['setSiteId', '{{ matomoID }}']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
@ -44,7 +44,7 @@
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- End Piwik Code -->
<!-- End Matomo Code -->
{% endif %}
</body>