I have just installed CrawlTrack (http://www.crawltrack.net) to tack bots and other things on my site. It uses a php script that must be written in index.php of wordpress.
But when I use W3TC with Page Cache Enhanced, the index.php is skipped and the html cached page is directly served.
I'm trying a solution to continue to use Page Cache Enhanced but also to track bots with CrawlTrack.
I know that I can use the Page Cache normal method that uses php instead of htaccess, but the best is to use the Enhanced method.
Maybe I can put inside htaccess the line:
AddType application/x-httpd-php .html AddType application/x-httpd-php .htm
So every html is read as php, but how to put the php code inside the cached html files? The code must be inside the tags
?> so, how to mantain them when the page is processed by the plugin?