跳至內容
選單
此問題已被標幟
1 回覆
3554 瀏覽次數

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.



頭像
捨棄
作者 最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 25
25034
2
7月 22
4203
1
9月 21
3842
3
9月 21
8622
2
9月 21
9495