Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3562 Vistas

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 25
25039
2
jul 22
4209
1
sept 21
3849
3
sept 21
8639
2
sept 21
9501