Skip to Content
Menu
This question has been flagged
1 Atsakyti
3533 Rodiniai

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.



Portretas
Atmesti
Autorius 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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
birž. 25
25014
2
liep. 22
4195
1
rugs. 21
3827
3
rugs. 21
8612
2
rugs. 21
9470