Skip to main content
All CollectionsTroubleshooting and FAQsFrequently Asked QuestionsTheme Options
How to Add Google Analytics and Other Tracking Codes to Your Divi Website
How to Add Google Analytics and Other Tracking Codes to Your Divi Website

Learn how to add Google Analytics, Facebook Pixel, and other third-party tracking scripts using Divi’s Theme Options.

Updated over 3 months ago

Tracking your website’s performance is crucial for understanding visitor behavior, measuring the effectiveness of your content, and making informed decisions to improve your site.

This guide is perfect for website owners, marketers, and developers who want to enhance their site’s analytics capabilities and gain deeper insights into their audience and performance.

Whether you want to track traffic, conversions, or user interactions, our step-by-step instructions will show you how to integrate these tracking codes seamlessly.

  1. Go to WordPress DashboardDivi → Theme Option → Integration tab

  2. For tracking scripts such as Google Analytics or Facebook Pixel, place the related scripts in the Add code to the < body > (good for tracking codes such as Google Analytics) section

    Divi - Integration Tab

Note: Make sure that the Enable body code option is enabled:

Divi - Enable Body Code
Did this answer your question?