Skip to Content
मेन्यू
This question has been flagged
1 Reply
3538 Views

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
Discard
Author Best Answer

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
Discard
Related Posts Replies Views Activity
1
जून 25
25025
2
जुल॰ 22
4197
1
सित॰ 21
3837
3
सित॰ 21
8615
2
सित॰ 21
9479