Feature #34367
Add custom variables using a hook and/or TypoScript
| Status: | New | Start date: | 2012-02-27 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | - | Spent time: | - | |
| Target version: | - | |||
| Votes: | 2 (View) |
Description
Piwik offers the opportunity to set up to 5 custom variables per request and 5 per visit: http://piwik.org/docs/javascript-tracking/#toc-custom-variables
It would be a good idea to have a hook where you can add some of them using PHP and/or TypoScript. I specially need some values from php-variables and therefore it'd be the best to have a hook ;) You can also add a TypoScript option if you want.
History
Updated by Simon Schick over 1 year ago
I dont know how it is now - but please make sure that this is not cached by TYPO3 as this values are most-likely user-specific (like the zip-code of the user or stuff like that).
Updated by Jonas Götze 9 months ago
+1 for that, please integrate.
In my case I'd need that for including this plugin:
https://github.com/BeezyT/piwik-sitesearch/wiki
You need to setpiwikTracker.setCustomData({SiteSearch_Results: XX});
betweenvar piwikTracker=Piwik.getTracker(...);
andpiwikTracker.trackPageView()
So a hook or TS to add own Javascript code would be very great.
Regards