CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #34367

Add custom variables using a hook and/or TypoScript

Added by Simon Schick over 1 year ago. Updated 9 months ago.

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 set
piwikTracker.setCustomData({SiteSearch_Results: XX});
between
var piwikTracker=Piwik.getTracker(...);
and
piwikTracker.trackPageView()

So a hook or TS to add own Javascript code would be very great.

Regards

Also available in: Atom PDF