What's the best way of adding Google Analytics tracking code to a WordPress site?
I use Google Tag Manager, and I install the code using either functions.php or a code injector right within my theme. GTM helps with auto event tracking, external link tracking and loads more.
Learn more and enroll in our Tag Manager Mastery Course.