diff --git a/config.php.example b/config.php.example index 9653f52..f126d78 100644 --- a/config.php.example +++ b/config.php.example @@ -10,6 +10,14 @@ // This URL will never be revealed to visitors or search engines. $MATOMO_URL = 'http://your-matomo-domain.example.org/matomo/'; +$MATOMO_TRUSTED_URLS = [ + // Edit the lines below, and replace http://your-matomo-domain.example.org/matomo/ + // with your Matomo URL ending with a slash. + // Also add any other trusted_hosts[] - config you have in config/config.ini.php + // These URLs will never be revealed to visitors or search engines using the tag manager. + 'http://your-matomo-domain.example.org/matomo/' +]; + // Edit the line below and replace http://your-tracker-proxy.org/ with the URL to your tracker-proxy // setup. This URL will be used in Matomo output that contains the Matomo URL, so your Matomo is effectively // hidden. diff --git a/js/.htaccess b/js/.htaccess new file mode 100644 index 0000000..2b3979b --- /dev/null +++ b/js/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine On + +RewriteRule ^(.*)\.js$ index.php diff --git a/js/index.php b/js/index.php new file mode 100644 index 0000000..232d576 --- /dev/null +++ b/js/index.php @@ -0,0 +1,54 @@ +