![]() |
|
|||||||
| Tips and Tricks Share your little gems right here. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
hi,
in Google Analytics, you can get Google to capture your in-site search info, to do this, it requires a "parameter" "Normally when a user searches on your site, their query can be found in the URL. For example, if you search on Google.com, you will see your search query followed by 'q='. Therefore, Google's query parameter would be 'q.' See example below: http://www.google.com/search ?source=ig&hl=en&q=Google+Analytics&btnG=Google+Se arch In the example above, the query parameter is 'q,' and the query was 'Google Analytics.' If your site uses categories, then the same principle above applies. You can also contact your webmaster to identify the query parameter for your site." Can I ask what the parameter is on Storesprite? Cheers S |
|
#2
|
|||
|
|||
|
The search parameter is 'query_string', however it is a $_POST variable not a $_GET variable as they suggest and is not passed in the URL per se. I am not sure how much mileage you will get from it, might be worth trying in case their scripts detect both.
|
|
#3
|
|||
|
|||
|
For anyone interested in knowing what people are searchgin on in their site, put this into your search.php
<?php if (!empty($_POST[query_string])) { mail("you@youremail","Search for ".htmlentities($_POST[query_string])."","Someone searched for '".htmlentities($_POST[query_string])."'","FROM:server@yoursitedomain"); } ?> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|