Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
3515 Tampilan

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
Buang
Penulis Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 25
24999
2
Jul 22
4165
1
Sep 21
3806
3
Sep 21
8593
2
Sep 21
9453