Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3525 Weergaven

Hi, 

I need to add a variable to matomo through the piwik analytics module, by javascritps tracking, adding a example line in the js code.
_paq.push (['setCustomVariable', 1, 'UserId', user_id, 'visit']);
but when I apply and save the change odoo deletes the line, any suggestions.
Thanks in advance.



Avatar
Annuleer
Auteur Beste antwoord

Solved

You have to manually edit the piwik_website_analytics.py file and add the setCustomVariable to the 
javascript code.
 _paq.push (['setCustomVariable', 1, 'UserId', odoo.session_info.user_id, 'visit']);

The module must be reloaded, and from the back apply the change.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
jun. 25
25012
2
jul. 22
4194
1
sep. 21
3816
3
sep. 21
8607
2
sep. 21
9468