Adding a tracking code to a WordPress site is relatively quick and easy to do. Tracking codes can be used to monitor and analyze key performance metrics on your website traffic and advertising conversions. Learn how to add tracking code to your WordPress site and get a wealth of useful insights into your website visitors and what they are reading.
Things You'll Need
- WordPress site
- Tracking code (Google Analytics, etc.)
Obtain the tracking code that you'll need to install in your WordPress site from the monitoring site you intend to use. For example, to obtain tracking code for Google Analytics, open a browser and navigate to Google.com/analytics. Create a Google account, if you don't already have one. Then, follow the on-screen prompts to generate custom tracking code for your WordPress site. Copy and paste this code into a text document for later use.
Browse to your WordPress site and log in to the dashboard. If you are the site administrator, just add "wp-login.php" (without the quotes) after the URL for your domain to navigate directly to the dashboard.
Open the WordPress file editor. Click "Appearance" on the toolbar and then click "Editor." As new versions of WordPress are released, the procedure for launching the file editor may vary slightly but should closely parallel the procedure described here. Refer to WordPress Help if you need assistance completing this step.
Open the footer file on your WordPress site for editing. Click on "Footer (footer.php)" to edit this file.
Scroll to the bottom of the "footer.php" file and look for the following HTML code:
Paste the tracking code that you generated in Step 1 into the document above the closing </body> tag. Click "Update File" below the text box to save your changes. The tracking code is now installed on your WordPress site. Navigate to the website that issued your tracking code (for example, Google Analytics) and follow the procedures on that site for logging in and accessing tracking reports on your WordPress site.
Tips & Warnings
- Don't forget to click "Update File" to save.
- Photo Credit Thinkstock Images/Comstock/Getty Images
How to Add Amazon Ad Code to a Wordpress Blog
Would you like to link to Amazon products on your blog and earn a little cash from affiliate sales income? There's not...
How to Add a Photo Slideshow to WordPress
Slideshows provide an exciting element to static WordPress blogs. Add images of friends and family to your social networking blog or share...