Adding your Google Analytics tracking code to your Divi theme is super easy and can be done in three simple steps.
1 – Go to https://analytics.google.com and grab your tracking code. Log in to your account and then click Admin >> your website name and then Tracking Info >> Tracking Code.
2 – Copy the script.
3 – Log in to your WordPress admin dashboard. Go to Divi >> Theme Options >> Integrations and add the code you copied to the box that says “Add code to the body (good for tracking codes such as google analytics)”. Click save.
Done! Your Google analytics code is now tracking the traffic on your Divi site!