Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
4725 Vizualizări

Good day.  Google gives me these instructions and I don't know where to do it.  

The instructions from Google are .....

Option 2: Install a Google tag in your website code Paste your Google tag before the closing tag on every page of your website you want to track.

That is it for instructions.  They give me a few lines of code to paste in.  


I can't find the place to modify each page.  

Can you help?


Thank you! 

Imagine profil
Abandonează
Cel mai bun răspuns

In Odoo 16 at the website you go to your main page. 
set it in Edit mode and go to theme.
At the bottom there is Website Settings
And there you find the button code injections, klik on it. 
Add your code to the existing one (if there is already some other code injected)
Then save your page. done! 

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Scott,

From what I understand through your question, you can override the footer on your webpage and add custom code. Since this is added to the footer, each page will use this code.

Code for overriding the website footer:









Imagine profil
Abandonează

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="replace_footer" inherit_id="website.footer_custom" name="Footer">
<xpath expr="//div[@id='footer']" position="replace">
<!-- Write here your custom code -->
</xpath>
</template>
</odoo>

make to sure to mark this as the best answer if this helps you

cheers!

Cel mai bun răspuns

Hi,
Refer to this blog, It shows how to implement google tag manager in the Odoo16  e-commerce website
https://www.cybrosys.com/blog/how-to-implement-google-tag-manager-in-odoo-16-ecommerce-website

Hope it helps

Imagine profil
Abandonează