Depending on your WP Engine hosting plan, it may have one of the following issues:
1. High number of admin-ajax.php requests
If the WP Engine support team has emailed to you regarding a high number of admin-ajax.php request coming from our plugin, you can disable the Server-side Cookie Renewal (admin-ajax.php) feature.
The WP Engine hosting plans relies heavily on their caching system, so any extra PHP process is not advisable.
But take note that once this feature is disabled, you will not get an accurate attribution report because of Apple’s Intelligent Tracking Prevention (ITP). Our plugin uses admin-ajax.php to issue HTTP cookies to every site visitor to bypass Apple’s cookie deletion algorithm.
- Login to your WordPress Admin.
- Go to the AFL UTM Tracker > Settings > Site Performance section.
- Set the Server-side Cookie Renewal to ‘Fastest – Disable Feature’.
2. UTM parameters are stripped out
Do note that NOT all of the WP Engine customers suffer from this issue.
Based on a WP Engine article “Cache and utm/gclid“, it mentions that their system will sanitize the URL whenever it detects a tracking parameter. This is part of their caching algorithm to maintain performance vs cost.
In the article, it also mentioned in bold that:
In WP Engine’s cache configuration, we have specific measures in place to ensure that adding URL variables does not cause the page to serve uncached. We call this process “sanitizing”: A request is received by the server and the
gclidvariables are stripped from the end of the URL before sending the request to be generated by PHP. Once the request is compiled, the variables are re-attached to the URL to be returned to the user.
However this wasn’t the case, the UTM parameters are not being re-attached to the URL. Instead the WP Engine server did a browser redirect.
The visitor visited the following URL:
Then the visitor is automatically redirected to the requested page without the UTM parameters by the WP Engine server. In this scenario, even Google Analytics will not receive the UTM parameters.
The solution is to add the UTM parameters to the Cache-exclude setting in the WP Engine panel.
- Go to your WP Engine admin panel.
- Go to your site.
- Go to Advanced > Cache-exclude: query arguments
- Create the following entries: