How to Add JS to Your Odoo Website

Read How to Add JavaScript to Your Odoo Website: Step-by-Step Guide

Users who use the Odoo Website module to promote their business often have common questions and sometimes can't immediately find the answers.

Here are some examples of questions related to integrating third-party JavaScript (JS) code into your site:


Here are examples of questions when you need to push third-party JS code to your site:

  • How to add JS code to a website ?
  • How to connect Google Tag Manager ?
  • How to connect Odoo Livechat from another odoo website ?
  • How to add google-site-verification meta tag ?


Fortunately, Odoo has standard functionality to address these needs! 
We're happy to guide you through several ways to add JS code to your website.

The simplest method is as follows:

  1. Go to the Website main menu.
  2. Select Configuration.
  3. Choose Websites.
  4. Select the website you need from the list.


Custom Code fields

Use the Custom <head> code field to plug in your code. For example:

        • To connect Google Tag Manager
        • To connect LiveChat from another Odoo server
        • To add a meta tag for Google verification
Additionally, for Google Tag Manager, you need to add code to the end of the <body> tag. For this purpose, there is a field called Custom end of <body> code.


We hope you found this information useful. ​

If you need help with customizing the Website module, please write to us in our LiveChat.
For technical questions, ask it in our LiveChat and specify your email so we can prepare an answer and send it for you.

Hide "Sign in" Button in Odoo 17 Website
Read how to remove the Sign in button from a website's header