Global Site Tag (gtag.js) is now the Google Tag
by Garazd Creation https://garazd.biz/shop/google-analytics-4-global-site-tag-gtag-js-8
                                Odoo
                            
                    | Availability | 
                            
                             Odoo Online
                              Odoo.sh  On Premise | 
| Odoo Apps Dependencies | • 
                            Website (website) • Discuss (mail) | 
| Lines of code | 94 | 
| Technical Name | 
                    website_google_analytics_4 | 
| License | OPL-1 | 
| Versions | 12.0 13.0 14.0 15.0 16.0 17.0 18.0 19.0 | 
- Community
- Enterprise
       Enterprise
       Community
    
  Activate the Google Tag on your Odoo website to integrate with Google Analytics 4 (GA4) and Google Ads
Description
  Recently, Google has announced that they implement a single script for tracking visitor activity on websites. This script, named Google Tag, should be added to all webpages of a website.
So, the global site tag (gtag.js) is now the Google tag, you can find details in this Google documentation: https://support.google.com/tagmanager/answer/11994839.
The Google Tag now supports various destinations, such as:
- Google Ads - is a platform for promoting your products and services across the entire Google product network.
- Google Analytics 4 - is a new generation of analytics from Google with a new interface, reports, and features. You can use it for your Odoo websites.
To implement tracking of e-commerce events on your Odoo website, consider using the ready-made solution Odoo Google Analytics 4 eCommerce.
  
  Compatible with the Odoo Google Consent Mode app
    Benefits
  No Code
                Activates tracking tags without coding
Multi
                Multi-Website support
Support
                Free 30 days support and 180 days bug-fixing
Try me
                Demo & Test. Click on the "Live Preview" button
Google Analytics 4 Tag
  
  Retrieving the Google Analytics 4 measurement ID
      
        In your Google Analytics 4 account, go to the "Admin" - "Data collection and modification" - "Data streams" menu, select the required stream then copy the Measurement ID.
      
       
      Google Ads Tag
  
  Retrieving the Google Ads Tag ID
      
        In your Google Ads account, go to the "Tools" - "Data manager" menu and on "Google tag" tab copy the Tag ID.
      
       
      Configuration
  Adding a tracking ID
      
          Go to the menu "Website" - "Configuration" - "Settings" and activate the "Google Analytics 4" option.
          Then enter Tracking ID and save the changes.
      
       
      The script code
      The global site tag will be added to all web pages.
       
      
          Google Analytics 4 events will fire only if you are not logged in Odoo or you don't have Website editor's access rights. This behavior is implemented to avoid sending data to Google by internal system users.
      
    Debug Mode
  You can activate the "Debug Mode" and test sending of events to Google.
     
        To do it, activate the appropriate option in website settings.
           
        View events in the "Debug View".
          Related Modules
      Contact Us
 
      Support, customizations, and development
      
      
        
        Skype: 
        GarazdCreation
      
      
        https://garazd.biz/contactus
      
    Our expertise
 
      
           Odoo Learning Partner
        
        
           OCA Member
        
        
           With Odoo since 2014
        
        
           Over 15,000 app downloads and purchases
        
        
           Our apps in the TOP 15 on Odoo Apps
        
      Version: 14.0.3.0.0
    Module design is reserved | Copyright © Garazd Creation
Changelog
  - 
            
            14.0.3.0.0 2024-03-16- Refactor from GA4 to the Google Tag.
 
- 
            
            14.0.2.0.1 2024-02-05- Fix linter warnings.
- Add README.rst.
 
- 
            
            14.0.2.0.0 2023-06-14- Improved for new website tracking logic.
- Change the license to OPL-1.
- Remove "sign_up" and "login" GA4 events tracking.
 
- 
            
            14.0.1.1.1 2022-08-13- Fix click function for logged users.
 
- 
            
            14.0.1.1.0 2022-08-12- Add Google Analytic 4 "Debug Mode" option.
 
- 
            
            14.0.1.0.1 2021-07-07- Move script block to the end of the head tag.
 
- 
            
            14.0.1.0.0 2021-06-02- Init version.
 
          
          
            Rate the app
            - support us to do more!
            
          
        
      Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
                   
                   
                   
                   
                   
                  
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedImprove the conversion rate of our campaign
Great app, excellent service, and quick results. I am very happy with this essential module that impacted our google campaign quite a lot
Thanks
This is really helpful
Downgrade to v13
Hello, can this be downgraded to odoo v13 enterprise please?
Re: Downgrade to v13
Hi, Theis.
Thank you for your interest in our modules.
Yes, we can downgrade this module to version 13.0 EE.
Please let me know how I could contact you.
Our e-mail: support@garazd.biz
Best regards, Yurii Razumovskyi.
Company Garazd Creation
https://garazd.biz | https://apps.garazd.biz - useful Odoo apps for your business.