Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to integrate a web analytic with OpenERP ?

By
Yug Faa
on 8/1/13, 8:39 AM 2,549 views

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.

0
Mind And Go
On 12/11/14, 6:08 PM

Hy, I think you're working with iframe.

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

0
Mustafa Rawi
On 12/11/14, 8:01 PM

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>

0
Christophe HANON
On 8/12/13, 2:57 PM

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

Yug Faa
on 8/13/13, 12:19 PM

Is there some news ?

Yug Faa
on 9/17/13, 7:28 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 8/1/13, 8:39 AM
Seen: 2549 times
Last updated: 3/16/15, 8:10 AM