Need help? Call us on 1300 789 260

Allow W3 Total Cache to pages with Google Analytics Tags

Difficulty: Intermediate

Prerequisites

  • WordPress Administrator access
  • W3 Total Cache installed

Overview

Conetix uses and recommends the use of W3 Total Cache for WordPress sites to ensure the highest possible website response times. W3 Total Cache (W3TC) does this by generating a static HTML version of the site and serves this directly where it's safe to do so. However, if you're using a URL with Google Analytics tracking (eg, the URL has utm_medium=facebook or similar), by default W3TC won't cache the page as it doesn't explicitly know this URL is safe to do so. Thankfully, this can be over-ridden by adjusting the settings to let these variables through.

Instructions

  1. Login to your WordPress site.
  2. Under Performance on the left hand side, select Page Cache:
  3. Under Accepted query strings , add the variables on separate lines:
    utm_source
    utm_medium

    Your configuration should look like this:

  4. Save all settings and test your site again.

Note: As the Google Analytics uses the client / browser to implement the tracking information, there's no issue with having these URL's cached.

Was this article helpful? Yes No
👥

Having trouble? We’re here to help!

We’ve built our company with a serious focus on quality service. Feel free to give us a call!

1300 789 260