Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
4745 Представления

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! 

Аватар
Отменить
Лучший ответ

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! 

Аватар
Отменить
Лучший ответ

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:









Аватар
Отменить

<?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!

Лучший ответ

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

Аватар
Отменить