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.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Data Driven Contact Data Driven