I don’t use PHP for my site, but I do have it and obviously run Mint on it. My question is, since my app is not in PHP, how can I log local searches? I don’t use the “GET” method, I use “POST.”
Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!
I don’t use PHP for my site, but I do have it and obviously run Mint on it. My question is, since my app is not in PHP, how can I log local searches? I don’t use the “GET” method, I use “POST.”
You don’t need to use PHP as long as the Mint JavaScript include is on your search results page and the query string appears in the url. This mean you must use the GET method. Otherwise, there’s no way to detect which search terms were used.
Shaun, I don’t use the GET method on my search form for my application. I do however record my site searches in my own DB, so is there a way to link the two up, or at the time that the search is done, use my app to update mint records?
I imagine you can just connect to your search DB in the pepper and populate the panel table with results from that.
ok, not 100% sure but my search result page URL is formulated as such.
`http://www.greatertalent.com/search_results.php?keywords=svu&Submit.x=0&Submit.y=0&Submit=Submit`
i have tried the following w/ no avail.
path: /search_results.php
query: /search_results.php?keywords=Mint
is this formed properly?
I know that the get method is used. Any help would be much appreciated.
No, query should be just ‘keywords’ in your case.
path: /search_results.php
query: /search_results.php?keywords=
as such is in my config for the pepper however no data is ever registered there.
Any ideas?
No.
Path: /search_results.php
Query: keywords
Just ‘keywords’, don’t repeat the path in the query input.
Ok, I changed it to just ‘keywords’ and I ran some queries on my site and no stats came up. Should it be instant or will it take a little bit to show?
Not to worry, they finally started populating about 10 minutes after I posted the previous message.
Thanks again.
I use a subdomain, not a path, for my searches. http://find.elliottcable.name/foobar
Could Local Searches be updated to work with this?
I’ve seen else where that you don’t plan to support restful URIs in Local Searches; I can easily change this format to http://find.elliottcable.name/?find=foobar; but it still doesn’t support subdomains instead of paths. Could you do that much, at least?
Thanks! [-:
You must be logged in to reply. Login above or create an account