Track visitor searches in OSCommerce and CRE Loaded with Google Analytics
Search feature in OSCommerce and CRE Loaded provide an important functionality for visitors to perform custom search. Its important to know what visitors are searching on your site. Luckily Google Ananlytics (GA) provides and easy way to track these searches.
To enable this tracking your need to login to your GA account and goto Analytics Settings > Profile Settings > Edit Profile Information. Under Site Search select Do Track Site Search. Now you need to tell what parameter contains the search term. As internal search is provided on this page advanced_search_result.php?keywords=test, here we have to track keywords parameter. So put keywords in Query Parameter (required): field.
This will enable tracking for searches performed on your site. Many useful reports are provided by GA telling for example what people are searching and many other things.
I have this configured exactly the way it is above here. I cannot get the search results to return. Conversely when I enter osCsid as the query paramerter I get results. This is puzzling.
Any help would be greatly appreciated.
The only difference I have is I have selected the option:
Yes, strip query parameters out of URL
As well my search results can contain “?osCsid=alpha-numeric characters&keywords=”
Obviously without the quotes. So is it because the ? is prior to the osCsid that the keywords are not tracked?
I wonder
You don’t need to put osCsid or any other param in GA. Just put “keywords” in GA account in field “Query Parameter (required):”. The keywords is without quotes.
When you enter osCsid in field it will track each url and give you results as osCsid value, which is not needed.
Please try to configure once again and check next day.
Hi,
I have had this configured for a number of days, and I have received zero searches on my website. Which is impossible as I have had friends do searches on my site.
I have no idea why this is not working.
I found the solution, at least I think I did.
In the advanced_search_result.php I inserted this code:
pageTracker._trackPageview(‘/site search/&keywords=%searchterm’)
Between:
&
I hope this helps people who had/having the same problem.
Sorry that is between
body_eof & footer