well i’ve made a modification to the default pepper.
directly below this line:
$domain = preg_replace('/(^([^:]+)://(www.)?|(:d+)?/.*$)/', '', $referer);
I put this:
$resource = preg_replace('/?gclid=.*/', '', $resource);
Now I just have 13 pages in the pages pepper instead 100+, there are only 30pages on this site, so that’s much better :)
this file is located at:
/mint/pepper/shauninman/default/class.php
and the function that’s being modified is onRecord()
A note of caution, if your site isn’t doing static locations (not .html but asp?id=12&view=12) it’s prbably not going to work for you since the regex looks for ?gclid - not gclid in the querystring. my regex skillz are very poor and i couldn’t figure out a way to just remove gclid and leave everything else intact if there were other querystring parameters. My site is on Joomla CMS but I have the OpenSEF component installed to make static urls