At U of M, there are currently six search forms on our library homepage:
- Site search
- MNCat (library catalog)
- Article search (EBSCO, PubMed, etc.)
- Journals search (MetaLib or Primo)
- Video and Media (scoped Primo search)
- Course Resources
It's a bit messy, so we've worked to make it much simpler. Our first open source project on GitHub is called GA Track Form Submit.
Using this code, and taking advantage of event tracking in GA, when a user submits a form where we've added "ga-track" as a class attribute, we'll capture the user query, the radio or drop-down input values and record them (as JSON) along with the Form Submit event in GA.
It's important to note we DO NOT capture any personal information here -- our GA account anonymizes IPs, you know. We're just recording the form input values for internal use.
For a simple form like our library catalog:
<form name="mncatplus" class="ga-track"...> <input name="request" type="text"/> <input type="image" src="../path"/> <input type="radio" name="type" value="keyword"/> <input type="radio" name="type" value="title"/> <input type="radio" name="type" value="author"/> </form>We'll push an event to GA that records info like this:
| Form | Submit | {form: "mncatplus", request: "hemingway", image: "Go", type: "author"} |
So... what are people searching for on our site? Just give us a little bit of time to capture the data and we'll let you know.
No comments:
Post a Comment