Ajuda

0

Implement google tag manager

Avatar
Pierre Peckel

I'm using Odoo Online and i can't use a third party app to implement the google tag manager. 


I tried to do it myself by putting the code in the header and in the body of the Web_layout. I also changed the "&" to "&" but, unfortunately i got four error messages (see below).  


Has anyone experienced the same error messages ? and how were you able to solve it ? 


Thank you, 


Error 1 : 

Traceback:

TypeError: Cannot read property 'user_context' of undefined

    at Object.loadAsset (https://www.lavitrinelocale.be/web/static/src/js/core/ajax.js:447:50)

    at https://www.lavitrinelocale.be/web/static/src/js/core/ajax.js:544:25

    at https://www.lavitrinelocale.be/web/static/src/js/core/ajax.js:555:28

    at https://www.lavitrinelocale.be/web/static/src/js/core/concurrency.js:195:30


Error2 : 

Error:

Uncaught TypeError: odoo.define is not a function


https://www.lavitrinelocale.be/:1307

Traceback:

TypeError: odoo.define is not a function

    at https://www.lavitrinelocale.be/:1307:26


Error3 :

Error:

Uncaught TypeError: Cannot read property 'services' of undefined


https://www.lavitrinelocale.be/web/static/lib/jquery/jquery.js:3827

Traceback:

TypeError: Cannot read property 'services' of undefined

    at HTMLDocument.<anonymous> (https://www.lavitrinelocale.be/saas_website/static/src/js/db_activation_reminder.js:7:26)

    at mightThrow (https://www.lavitrinelocale.be/web/static/lib/jquery/jquery.js:3534:29)

    at process (https://www.lavitrinelocale.be/web/static/lib/jquery/jquery.js:3602:12)


Error4 :

Error:

Uncaught TypeError: odoo.define is not a function


https://www.lavitrinelocale.be/web/static/lib/jquery/jquery.js:3827

Traceback:

TypeError: odoo.define is not a function

    at HTMLDocument.<anonymous> (https://www.lavitrinelocale.be/saas_trial/static/js/activation.js:6:6)

    at mightThrow (https://www.lavitrinelocale.be/web/static/lib/jquery/jquery.js:3534:29)

    at process (https://www.lavitrinelocale.be/web/static/lib/jquery/jquery.js:3602:12)

Avatar
Descartar
1 Resposta
1
Melhor Resposta

Hello Pierre,

I got the same traceback once. You need to insert your GTM script at the end of the head, and the noscript part right after the body.

It will resolve your traceback!


Avatar
Descartar