diff --git a/lang/en.php b/lang/en.php index df999dd9f5dcf87d8174d775cc3baa839d042a24..10c74e850a409420285b48238d49f9fffcde753f 100644 --- a/lang/en.php +++ b/lang/en.php @@ -482,7 +482,7 @@ $translations = array( 'CoreAdminHome_JSTracking_MergeAliases' => 'In the "Outlinks" report, hide clicks to known alias URLs of', 'CoreAdminHome_JSTracking_MergeAliasesDesc' => 'So clicks on links to Alias URLs (eg. %s) will not be counted as "Outlink".', 'CoreAdminHome_JSTracking_GroupPageTitlesByDomain' => 'Prepend the site domain to the page title when tracking', - 'CoreAdminHome_JSTracking_GroupPageTitlesByDomainDesc' => 'So if someone visits the \'About\' page on blog.example.com it will be recorded as \'blog / About\'. This is the easiest way to get an overview of your traffic by sub-domain.', + 'CoreAdminHome_JSTracking_GroupPageTitlesByDomainDesc1' => 'So if someone visits the \'About\' page on blog.%1$s it will be recorded as \'blog / About\'. This is the easiest way to get an overview of your traffic by sub-domain.', 'CoreAdminHome_JSTracking_VisitorCustomVars' => 'Track custom variables for this visitor', 'CoreAdminHome_JSTracking_VisitorCustomVarsDesc' => 'For example, with variable name "Type" and value "Customer".', 'CoreAdminHome_JSTracking_PageCustomVars' => 'Track a custom variable for each page view', diff --git a/plugins/CoreAdminHome/templates/jsTrackingGenerator.js b/plugins/CoreAdminHome/templates/jsTrackingGenerator.js index 36f8df5fd275b1dded91e56d9c70a32052a5cd6c..0b339d35286845d88ce732d6c9f630febd8191a5 100644 --- a/plugins/CoreAdminHome/templates/jsTrackingGenerator.js +++ b/plugins/CoreAdminHome/templates/jsTrackingGenerator.js @@ -307,7 +307,8 @@ $(document).ready(function() { $(this).text(siteHost); }); - $('.current-site-alias').text(siteUrls[site.id][1] || 'x.domain.com'); + var defaultAliasUrl = 'x.' + siteHost; + $('.current-site-alias').text(siteUrls[site.id][1] || defaultAliasUrl); resetGoalSelectItems(site.id, 'js-tracker-goal'); generateJsCode(); diff --git a/plugins/CoreAdminHome/templates/jsTrackingGenerator.tpl b/plugins/CoreAdminHome/templates/jsTrackingGenerator.tpl index 64ed6b9f423c36ef981cba1586329c9c57738c90..529516c3b53051c2e49418ee6ba27e19a3dce234 100644 --- a/plugins/CoreAdminHome/templates/jsTrackingGenerator.tpl +++ b/plugins/CoreAdminHome/templates/jsTrackingGenerator.tpl @@ -52,7 +52,7 @@ <label for="javascript-tracking-group-by-domain">{'CoreAdminHome_JSTracking_GroupPageTitlesByDomain'|translate}</label> <div class="small-form-description"> - {'CoreAdminHome_JSTracking_GroupPageTitlesByDomainDesc'|translate} + {'CoreAdminHome_JSTracking_GroupPageTitlesByDomainDesc1'|translate:"<span class='current-site-host'>$defaultReportSiteDomain</span>"} </div> </div>