diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-03-14 13:05:12 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-03-14 13:05:12 +0400 |
commit | c22a0017beb391ed9734b67abf5b1bcfeb26d233 (patch) | |
tree | cdd2f0a3a18a4c83764b8a10abc7d74b2c830acc /piwik.js | |
parent | f2466a580bcc1a33fb8ccee420bcf31ceb7b00ed (diff) |
Allow templates postEvent() calls to also pass parameters. For example this is done in the twig template:
```
{{ postEvent("Template.jsGlobalVariables", minDateYear, maxDateYear) }}
```
and you can hook on this event, by doing:
```
public function addTrackingHostnamesToJs(&$out, $minDateYear, $maxDateYear)
{
// printout out the data as a comment for testing
$out .= "/* " . $minDateYear . " - " . $maxDateYear . " */";
```
Diffstat (limited to 'piwik.js')
0 files changed, 0 insertions, 0 deletions