From ae5c6a3bd859e8b062bf83dde36bd37626fd9ccc Mon Sep 17 00:00:00 2001
From: Thomas Steur <thomas.steur@gmail.com>
Date: Mon, 11 Jan 2016 03:41:35 +0000
Subject: [PATCH] added examples for tracking only specific urls

---
 plugins/SitesManager/SitesManager.php                      | 1 +
 plugins/SitesManager/lang/en.json                          | 1 +
 plugins/SitesManager/templates/sites-list/site-fields.html | 1 +
 3 files changed, 3 insertions(+)

diff --git a/plugins/SitesManager/SitesManager.php b/plugins/SitesManager/SitesManager.php
index ca3f2757b9..5ebc5898f6 100644
--- a/plugins/SitesManager/SitesManager.php
+++ b/plugins/SitesManager/SitesManager.php
@@ -293,6 +293,7 @@ class SitesManager extends \Piwik\Plugin
         $translationKeys[] = "SitesManager_AliasUrlHelp";
         $translationKeys[] = "SitesManager_OnlyMatchedUrlsAllowed";
         $translationKeys[] = "SitesManager_OnlyMatchedUrlsAllowedHelp";
+        $translationKeys[] = "SitesManager_OnlyMatchedUrlsAllowedHelpExamples";
         $translationKeys[] = "SitesManager_KeepURLFragmentsLong";
         $translationKeys[] = "SitesManager_HelpExcludedIps";
         $translationKeys[] = "SitesManager_ListOfQueryParametersToExclude";
diff --git a/plugins/SitesManager/lang/en.json b/plugins/SitesManager/lang/en.json
index 0916869ce0..c566f9d40c 100644
--- a/plugins/SitesManager/lang/en.json
+++ b/plugins/SitesManager/lang/en.json
@@ -78,6 +78,7 @@
         "UTCTimeIs": "UTC time is %s.",
         "OnlyMatchedUrlsAllowed": "Only track visits and actions when the action URL starts with one of the above URLs.",
         "OnlyMatchedUrlsAllowedHelp": "When enabled, Piwik will only track internal actions when the Page URL is one of the known URLs for your website. This prevents people from spamming your analytics with URLs for other websites.",
+        "OnlyMatchedUrlsAllowedHelpExamples": "The domain and the path has to be an exact match and each valid subdomain has to be specified separately. For example when the known URLs are 'http://example.com/path' and 'http://good.example.com', tracking requests for 'http://example.com/otherpath' or 'http://bad.example.com' are ignored.",
         "WebsitesManagement": "Websites Management",
         "XManagement": "Manage %s",
         "ChooseMeasurableTypeHeadline": "What would you like to measure?",
diff --git a/plugins/SitesManager/templates/sites-list/site-fields.html b/plugins/SitesManager/templates/sites-list/site-fields.html
index dada85cc22..200e935e27 100644
--- a/plugins/SitesManager/templates/sites-list/site-fields.html
+++ b/plugins/SitesManager/templates/sites-list/site-fields.html
@@ -85,6 +85,7 @@
 
             <div class="form-help">
                 {{ 'SitesManager_OnlyMatchedUrlsAllowedHelp' | translate }}
+                {{ 'SitesManager_OnlyMatchedUrlsAllowedHelpExamples' | translate }}
             </div>
             <label class="checkbox">
                 <input type="checkbox" ng-model="site.exclude_unknown_urls" ng-true-value="1" ng-false-value="0"> {{ 'SitesManager_OnlyMatchedUrlsAllowed' | translate:'':'' }}
-- 
GitLab