Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Use Google Analytics

is google analytics effective on worpress?

You know when you add the snippet code to all the pages" of your site...now, In wordpress you just add it to the header before </head> how is that analyzing all the pages, jut not the landing page?

4 Answers

jason chan
jason chan
31,009 Points

wordpress has plugin for that. Just download the plugin and put the code in the form.

Yes, it's being analyzed on every page that contains your header.php file. Your header.php file should be included on all your pages.

Kevin Korte
Kevin Korte
28,149 Points

As Shaun said, every page will likely have the header.php file, so the GA code is included. As Jason said, there are plugins that make this super easy to implement.

Devon von Lichtenstein
Devon von Lichtenstein
1,116 Points

Plugins make tracking analytics very simple and effective.