Adding Google Analytics Tracking to the UUA WordPress Theme

Part of Documentation

Add Google Analytics tracking code to your congregation's WordPress website so you can see how people are visiting the site. You can find out how people find your site, which pages they visit, and other information.

You have several options.

If You Use a Child Theme

If you use a child theme, add this code:

<?php function uu_analytics_tracking() { ?> <!-- PASTE TRACKING CODE HERE --> <?php } add_action( 'wp_head', 'uu_analytics_tracking' );

Plugins That Add the Google Analytics Tracking Code

If you don't use a child theme, install one of these plugins, which already offer the ability to add Google Analytics tracking without editing code:

Basic Tracking Method Without Google Analytics

If you are not sure how to configure and use Google Analytics and just want basic site tracking, use the JetPack plugin.

JetPack already includes site stats with reports that offer quick, at-a-glance views of the traffic on your site.