Category Archives: Uncategorized

Setting up Contact Form Goals on Google Analytics

  1. Create a thank you page.  Take note of the page title and the URL.  Use a unique title if setting up multiple forms so its easy to find this page.  For example ‘Thank you requesting a consultation’.
  2. Go to the advanced tab of the Yoast portion of the page and exclude the thank you page from the sitemap and set it to noindex.
  3. Go to Forms > Selected Form > Confirmations – Select a page confirmation and choose the newly created thank you page as the confirmation.
  4. In Google analytics go to the Admin menu and select Goals > Custom Goal > Destination.  Use the partial URL of the page include leading and trailing slash. (/thanks-quick-contact/)

WordFence Configuration

WordFence is a security plugin that we install to all our sites before launch. It is a very powerful tool with many capabilities so this post should help optimize the plugin to fully utilize the features.

Once WordFence is installed, you have to go to Options link under the WordFence button in the Dashboard menu. WordFence will ask you to enter your email and then you can proceed with the configuration.

Basic Options:

  • You should uncheck the Enable Live Traffic View because it will tremendously slow down your site load-up speed.
  • For the to “How does Wordfence get IPs:” you want to select the “Use PHP’s built in REMOTE_ADDR…” option from the drop-down.

Advanced Options:


Uncheck the “Alert when someone is locked out from login” and “Alert me when someone with administrator access signs in” options.


Make sure all options are selected


The following image will show you how I configured the firewall options. You can choose to change the options to better suit your needs and you can also choose to block the users or crawlers that break rules rather than throttling them.


Login Security Options:

  • Change the drop-down values  for the “Lock out after how many login failures” and “Lock out after how many forgot password attempts” options to 5.
  • Change the “Amount of time a user is locked out” to 30 minutes.

Other Options:

You want to enter your site’s IP Address into the “Whitelisted IP addresses that bypass all rules:” field.


Setting Up Site-Search on Google Analytics

Google Analytics Site Search

  1. After logging into Google analytics, you want to select the profile on where you would like to track the searches.
  2. Click on the admin tab on the top right of the Navigation menu and select the View Settings option under View Column (first option in the column on the right)
  3. Scroll down until you see the Site Search Settings header and turn the button on to allow site search tracking.
  4. In the input field below labeled “Query parameter”, please enter the query parameter for your searches on your site.
    • Just make a test search on your site and look for the letter after the “?” in your URL
    • Enter that letter into the input field(usually the letter “q” or “s”….The WordPress Default is “s”)
  5. You can also track category searches if you please by turning on the Site search categories button and entering the category parameters in the input labeled “Category Parameters”.
  6. Now just Click Save and you are all set!

Configuring W3 Total Cache

We leaned heavily on advice from WP beginner in this article –

Basically they recommend that you enable Page Cache and Browser Cache which are enabled by default.  You do not need to enable database caching or object caching or minify.

Browser caching is enabled by default but there are some settings to enable in browser caching.

  • Disable cookies for static files

How to Setup Google Analytics

<?php if ( is_user_logged_in() ) { ?>

<!--the analytics code is hidden because you are logged in-->

<?php } else { ?>
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  ga('create', 'xx', 'auto');
  ga('send', 'pageview');


<?php } ?>

The first step to setting up a Google Analytics Account to first setup a Gmail account for the client (IF you or the client has not already done so).
Once the Gmail account has been created, you want to go to and register using the account you just made or the existing Gmail account that the client would like to use.
After registration, you will be sent to a screen that displays your UA code or Tracking Code. Copy and paste that code to a text editor because you will need that in a minute.

Now go Install the Google Analytics Plugin to WordPress and activate it. Once you activate it, you will need to navigate to the Settings menu for the Google Analytics Plugin and enable the following settings:

  1. Manually enter the UA Code. This is were you enter that UA code that you had copied and pasted in the previous steps
  2. Advanced Settings
  3. Logged in users under the Custom Variables menu
  4. The above settings will look like this:
  5. Finally change the ignore users drop-down selection, under Advanced Settings, to Editor.

Click the Update Settings button and then click the Allow Tracking button when the notification pops up.

How to Setup a WordPress Website

The first step to setting up WordPress would be to obviously install WordPress to your hosting site.

Once WordPress is installed you want to turn off the Robots so that Google cannot index your pages while you are still in the development stages.
To do this you must:

  1. Log into the WordPress admin dashboard
  2. Go to the Settings option on the side navigation
  3. Click on the Reading link from the slide out menu
  4. Click on the check box next to the title “Search Engine Visibility”
  5. Click Save Changes

The next step to setting up word press would be to disable the commenting. To do this you must:

  1. Go to back to the Settings option and Click on the Discussions link
  2. Next you will turn off the top three check boxs.
  3. Click Save Changes

How to create an HTML sitemap page template

We owe all of the credit on this post to Yoast who gave us most of this code from this post.  Create a new page template called sitemap and use the code to generate a list of pages and posts.

<h2 id="pages">Pages</h2>
// Add pages you'd like to exclude in the exclude here
    'exclude' => '',
    'title_li' => '',

<h2 id="posts">Posts</h2>
// Add categories you'd like to exclude in the exclude here
$cats = get_categories('exclude=');
foreach ($cats as $cat) {
  echo "<li><h3>".$cat->cat_name."</h3>";
  echo "<ul>";
  while(have_posts()) {
    $category = get_the_category();
    // Only display a post link once, even if it's in multiple categories
    if ($category[0]->cat_ID == $cat->cat_ID) {
      echo '<li><a href="'.get_permalink().'">'.get_the_title().'</a></li>';
  echo "</ul>";
  echo "</li>";

You may also want to include a search form at the top of the page if it isn’t part of the website shell.

<?php get_search_form(); ?>