Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattpiwik <matthieu.aubry@gmail.com>2012-10-15 11:41:12 +0400
committermattpiwik <matthieu.aubry@gmail.com>2012-10-15 11:41:12 +0400
commit5364959053ad9f086a37eff591bed7db7de67add (patch)
tree7a5675d8c0da719dd88370bbba0efc8366888b58 /core/Translate.php
parent5bc36eb3cac3421f7a592edee11528e63252e841 (diff)
Refs #2992 Site Search KABOOM, Refs #49
Implementing Site Search tracking & reporting in Piwik core! * New Admin UI to customize, for each site, wheter site search is enabled. Also options to set default values to use. * New Reports: Searches, Searches with no result, Search categories, Top Pages Following a Search * to track "No result keyword" users will have to tag their site with a JS call, or add a new parameter to the search result page &search_count=X (X being zero for no result searches) * Reports works with Row evolution, PDF/HTML reports, Piwik Mobile * idaction_url is now NULLable because, Site Search records a page with idaction_name == Keyword, and idaction_url == NULL. This ensures that the Site Searches don't create "Page URL Not defined" records. * updates to Tracker JS API, new function trackSiteSearch, also added in PHP tracker * New fields in log_visit to track searches * new segment, "searches" which can be used to select visitors who did a search ie. searches>0 or those who searched a lot, ie searches>10 TODO: * commmit integration test, TESTING, DOCS, FAQ, release, and a nice Prayer to the universe and the stars, hoping that I can code a major new feature without any bug... * It would be awesome to have compatiblity with Transitions so we can see, for a given site search, what are the starting pages and Destination pages Thank you for your patience Timo, and thank in advance everyone for your help Testing this new feature! git-svn-id: http://dev.piwik.org/svn/trunk@7190 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Translate.php')
-rw-r--r--core/Translate.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/Translate.php b/core/Translate.php
index db442f114b..280d837e56 100644
--- a/core/Translate.php
+++ b/core/Translate.php
@@ -167,12 +167,11 @@ class Piwik_Translate
}
$js = substr($js,0,-1);
$js .= '};';
- $js .= 'if(typeof(piwik_translations) == \'undefined\') { var piwik_translations = new Object; }'.
+ $js .= "\n".'if(typeof(piwik_translations) == \'undefined\') { var piwik_translations = new Object; }'.
'for(var i in translations) { piwik_translations[i] = translations[i];} ';
$js .= 'function _pk_translate(translationStringId) { '.
'if( typeof(piwik_translations[translationStringId]) != \'undefined\' ){ return piwik_translations[translationStringId]; }'.
- 'return "The string "+translationStringId+" was not loaded in javascript. Make sure it is suffixed with _js and that you called {loadJavascriptTranslations plugins=\'\$YOUR_PLUGIN_NAME\'} before your javascript code.";}';
-
+ 'return "The string "+translationStringId+" was not loaded in javascript. Make sure it is suffixed with _js and that you called %7BloadJavascriptTranslations plugins=\'\$YOUR_PLUGIN_NAME\'%7D before your javascript code.";}';
return $js;
}