Cache Url with Google Analytics Parameters QueryString

Cache Url with Google Analytics Parameters QueryString

by admin

If a url contains a query string, the url is not cached but the situation is different for the urls which contains google analytics parameters.

Google Analytics allows adding campaign parameters to the destination URLs to collect information about the overall efficacy of the campaigns.

If a url contains any google analytics parameters such as utm_source, utm_medium, utm_campaign, utm_term, utm_content, the url is served via main page cache. You don’t need to do any extra action.

Example

https://www.example.com/mypost/?utm_source=summer-mailer&utm_medium=email&utm_campaign=summer-sale

This url is served via the cache of https://www.example.com/mypost/

How To Disable

If you want to disable this feature, you can exclude via “exclude” tab as below.

Related articles

Exclude Page
Exclude Page

Although WP Fastest Cache works flawlessly, sometimes optimizing pages can cause errors. In this case, instead of disabling the plugin…

Using Regular Expression to Exclude a Page
Using Regular Expression to Exclude a Page

A regular expression is a string of text that allows you to create patterns to find what you’re looking for…

Cache Url with Yandex Click ID Parameters QueryString
Cache Url with Yandex Click ID Parameters QueryString

If a url contains a query string, the url is not served via cache but the situation is different for…

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.