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:
authorJoey3000 <Joey3000@users.noreply.github.com>2016-01-05 00:09:27 +0300
committerJoey3000 <Joey3000@users.noreply.github.com>2016-01-05 00:09:27 +0300
commit432366c49adfc29c50343fb23240fee17a492450 (patch)
tree02634e6be786afb689d27d8dd507e5f130cf6e40 /js/README.md
parentc9bb9c272790bd9a210b03788ba647ef742b99db (diff)
Document need to call setApiUrl()
If "js/" is used by the Piwik tracking code instead of "piwik.js" and "piwik.php", Page Overlay won't work unless setApiUrl() is called with its parameter pointing to the root directory of Piwik. See https://piwik.org/docs/page-overlay/#page-overlay-troubleshooting (last bullet point) for details.
Diffstat (limited to 'js/README.md')
-rw-r--r--js/README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/README.md b/js/README.md
index d24f8d8c9d..1d409cebff 100644
--- a/js/README.md
+++ b/js/README.md
@@ -22,6 +22,13 @@ The js/ folder contains:
attempt to block tracking, you can change your tracking code to use "js/"
instead of "piwik.js" and "piwik.php", respectively.
+ Note that in order for [Page Overlay](https://piwik.org/docs/page-overlay/) to work, the Piwik tracker method `setAPIUrl()` needs to be called with its parameter pointing to the root directory of Piwik. E.g.:
+
+ ```js
+ _paq.push(['setAPIUrl', u]);
+
+ ```
+
## Deployment
* piwik.js is minified using YUICompressor 2.4.2.