콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
6 답글
9947 화면

In the last version of Odoo (8.0), the javascript code generated by Odoo for Google Analytics doesn't work any more (no stats are returned by Google Analytics)

After investigating, I found the error (in website_templates.xml) :
Instead of :
 ga('create', '<analytics-id>', 'auto');
the new version of Odoo generates :
ga('create', _.str.trim('<analytics-id>'), 'auto');

which causes an error in Google analytics stat generation

 

아바타
취소

I have some problem here... it's obvious just remove '_.str.trim' will works again. but I think we should fix the problem the right way. Have you find a better way to fix that?

작성자

Post an issue on Github

it's fixed as per 12-01-2015 on github. Don't know if it's already in master.

it's fixed as per 12-01-2015 on github. Don't know if it's already in master.

베스트 답변

You can easily fix it by editing website_templates.xml with a text editor.

This file is located in your_path_to_odoo/addons/website/views/website_templates.xml (For example: /opt/openerp/odoo/appserver-dts-v8/parts/odoo-8.0-20150210/openerp/addons/website/views/website_templates.xml)

To have access to this path you need to be connected in SSH with a tool sush as Bitvise SSH Client.

아바타
취소
베스트 답변

How do we get the fix for this? Thanks in advance.

아바타
취소
관련 게시물 답글 화면 활동
3
10월 17
6997
2
11월 15
5853
3
12월 16
7329
3
7월 24
6175
3
3월 24
5315