Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Track internal search requests
Is there a way to log site searches within Textpattern?
Only way I can think of at the mo is to use Analytics, but it’s not so easy there either – especially with messy search URLs (/search?q=where+is+the+money&x=0&y=0).
Am I missing something obvious?
Offline
Re: Track internal search requests
pieman wrote:
Is there a way to log site searches within Textpattern?
Depends what you want to do with them I guess. Two avenues I can think of:
- filter TXP’s visitor logs to only show
?q=
- inside a
<txp:if_search>
conditional, write the<txp:search_term />
to another table (using smd_query or some PHP)
If you want any more detailed analytics than that you’ll have to put your thinkin’ trousers on.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Track internal search requests
Bloke wrote:
If you want any more detailed analytics than that you’ll have to put your thinkin’ trousers on.
Yep, I think I will.
But I’m already wearing two pairs to keep warm. I don’t think the stitching will hold if I try another layer.
Offline
Re: Track internal search requests
Google Analytics supports it. You just have to tell it what url parameter to look for in the Analytics Settings if I remember correctly
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: Track internal search requests
Thanks Matt. Sounds like the best option.
Offline
Pages: 1