Best Practices on Integrating a Django App with Google Analytics?


When it comes to a basic html page, I can embed the google analytics code into the page. How about a Django webapp? Is it right if I embed the script in for example, base.html? Appreciate the help! :)


Adding the code to my template page (aka yes base.html) is what I do — so you’re on the right track! :)