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
path: root/js
diff options
context:
space:
mode:
authorStevo Slavic <sslavic@gmail.com>2014-06-30 17:53:24 +0400
committerStevo Slavic <sslavic@gmail.com>2014-06-30 23:31:38 +0400
commit49d6eec6243e9ee88e838f239868093f2da77735 (patch)
tree90dec4709d81fad730088b5e1d2b58fc5037470a /js
parent8eb2bb4c1a36870016dffc548652bc72eafaf479 (diff)
Added support for adding plugins in Tracker public API
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/js/piwik.js b/js/piwik.js
index 20a03f48d8..66ea324e74 100644
--- a/js/piwik.js
+++ b/js/piwik.js
@@ -408,7 +408,7 @@ if (typeof JSON2 !== 'object') {
exec,
res, width, height, devicePixelRatio,
pdf, qt, realp, wma, dir, fla, java, gears, ag,
- hook, getHook, getVisitorId, getVisitorInfo, setSiteId, setTrackerUrl, appendToTrackingUrl, getRequest,
+ hook, getHook, getVisitorId, getVisitorInfo, setSiteId, setTrackerUrl, appendToTrackingUrl, getRequest, addPlugin,
getAttributionInfo, getAttributionCampaignName, getAttributionCampaignKeyword,
getAttributionReferrerTimestamp, getAttributionReferrerUrl,
setCustomData, getCustomData,
@@ -2490,6 +2490,16 @@ if (typeof Piwik !== 'object') {
},
/**
+ * Add plugin
+ *
+ * @param string pluginName
+ * @param Object pluginObj
+ */
+ addPlugin: function (pluginName, pluginObj) {
+ plugins[pluginName] = pluginObj;
+ },
+
+ /**
* Set custom variable within this visit
*
* @param int index