コンテンツへスキップ
メニュー
この質問にフラグが付けられました
3 返信
4769 ビュー

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

アバター
破棄