I have attempted to setup Site Search within Google Analytics and both methods I have read and used still fail to show up any results within GA.
Because my search form POSTs instead of GET's, the URL does not contain the search query paramaters, so I am having to use the _trackPageview() method on my search results landing page to push the search keywords to Google. I have tried the following methods below but I still have ZERO results in my Site Search results page:
var pageTracker = _gat._getTracker("UA-XXXXXXX-X"); pageTracker._initData(); pageTracker._trackPageview('/searchfor/?q=<?php echo urlencode($searchterm); ?>');
_gaq.push(['_trackPageview', '/searchfor/?q=<?php echo urlencode($searchterm); ?>']);
I have enabled Site Search within my GA profile settings and I have also set the letter 'q' as my search parameter.
Any ideas what I am missing? Its sooo frustrating as my search results page is the 2nd most used page one my site!
Thanks in advance.