Matt Fiddles

Life's so vast, there's just so much to do...

User Tools

Site Tools


"Wonderful girl! Either I'm going to kill her or I'm beginning to like her."

- Han Solo

Where will you go today?

Ben (Obi-Wan) Kenobi: "Use the Force, Luke!"

Wordpress tracking

For the actual site, you can use a plugin.

For other parts of the site, add the following to your theme's functions.php or to a “custom” site plugin:

To track to login page:

add_action( 'login_head', 'synt_ga_login_page');
function synt_ga_login_page() { ?>
    <!-- Your Analytics Code Here -->
<?php }

To track non-admin users on the dash:

add_action( 'admin_head', 'synth_admin_head_script' );
function synth_admin_head_script() {
  if ( !is_super_admin() || !is_admin() ) { ?>
    <!-- Your Analytics Code Here -->
 <?php } }


computers/websites/wordpress/tracking.txt · Last modified: Apr 27, 2014 (4 years ago) by Matt Bagley