Google AdWords appends the following querystring to a target url: ?sourceid=navclient-ff&ie=UTF-8&rlz=1BxGGGL_nlNLxxx&
q=search-phrase&gclid=CMa5rsabablkjlj
This results in a 404 page, either when I have search friendly urls turned on or not. Modx uses "q=alias" as a querystring variable to set a page alias. Google Adwords uses "q=search-phrase" for setting a search phrase in an URL. In order to overcome this problem, I have replaced all occurences of [’q’] with [’p’] in "index.php", "index-ajax.php" and "/manager/includes/document.parser.class.inc.php)" to have another querystring variable for setting aliases in Modx.
In .htaccess I replaced:
RewriteRule ^(.*)l$ index.php?q=$1 [L,QSA]
with:
RewriteRule ^(.*)$ index.php?p=$1 [L,QSA]
For me, this is now working. Google AdWords visitors now land on the correct pages. I don’t have snippets or modules installed that interfere with this. I guess, I don’t need to expect problems, because snippets, plugins and modules will use a document specific variable to request page alias info?