tetsuo13 / Roundcube-Matomo-Tracking-Api-Plugin

Add Matomo (formerly Piwik) tracking server-side code to all requests in Roundcube
Other
1 stars 0 forks source link

Pass logged in user to custom variable #2

Closed GitPuffy closed 7 years ago

GitPuffy commented 7 years ago

It would be great if your plugin could pass the logged in user (user@domain.com) to Piwik in the custom variable field. For example have the user information passed as custom variable name userName

tetsuo13 commented 7 years ago

I've added a new configuration variable to assign a custom variable slot ID to record the user's email address, $rcmail_config['piwik_tracking_api_user_email_custom_var']

Set this to a number from 1 to 5 to use.

This was a really good addition and I couldn't believe it wasn't already there. Thanks for the suggestion!

GitPuffy commented 7 years ago

The enhancement works well. Thank you!