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

Hello everybody,

I want to integrate Piwik/phpmyvisites/google analytic to my OpenERP instance.

These services provides a javascript script and an html code (noscript, iframe, img ..)

I put the javascript script in /addons/web/static/src/js/boot.js

And the html code in /addons/web/static/src/xml/base.xml (node : ViewManager)

The problem is that I have to refresh all the page everytime to get an other view registred in the web analytic

Is there a good place for HTML code that refresh when an action performed on webclient ?

A help please.

아바타
취소
베스트 답변

You can build a mini module with a code similar to:

        <template id="assets_backend" name="piwik_analytics assets" inherit_id="web.assets_backend">
            <xpath expr="." position="inside">
                <script type="text/javascript" src="/piwik_analytics/static/src/js/script_file.js"></script>
            </xpath>
        </template>

아바타
취소
베스트 답변

Hy, I think you're working with iframe.

Anyway in the action description, you could precise a refresh delay, maybe this could help

아바타
취소
베스트 답변

I am not completely sure of what your are trying to achieve, but if your intention is to tack usage using Google analytics there is a standard module doing just that called web_analytics. It will track web client actions. You can change it for your own purpose...

아바타
취소
작성자

like web_analytic but for my perpose I want to supervise the objects that my developper touch

작성자

Is there some news ?

관련 게시물 답글 화면 활동
2
3월 15
5240
0
3월 15
4921
3
8월 25
3623
2
7월 25
1473
1
5월 25
946