How to Add the Google Analytics Code

How to Add the Google Analytics Code

  • Go to http://www.google.com/analytics/, and sign up.
  • Then go to Admin > Property Setting > Tracking info, now click the Tracking Code link.
  • Copy your tracking code
  • Add the following code in your theme functions.php:

    If you want to exclude your visit, change function wphigh_tracking_code() to:

    Exclude multi-user:
Comments are closed.