Forum Discussion
Thanks for your detailed answer! I tried all the examples, but none have worked just yet. The very last thing you said was to run the 2nd example, and attach a listener to every <a> element, every time the auto complete results are generated. I think that sounds like the best bet, but what would you recommend using as a trigger? What can I listen for that will trigger my script every time the autocomplete results are generated and appear in the DOM?
Also, none of my events have shown up on Google Analytics just yet, despite successful in-browser testing. It can take a few hours to show up sometimes, but just in case, if your LDN folks know anything about GA events inside Lithium, I'd love any info they have.
Thanks again!
The data from our new Ask a Question Search component is starting to come in: http://screencast.com/t/TvtOhUutF0U.
Explaining the screenshot:
Focus = when a user focuses on the input to search
postByClick = when a user clicks the "Ask the Community" button, thereby creating a post
postByKey = when a user keys "Return" from the input, thereby creating a post
The major data point missing is how many ClickThroughs to suggested content! Tips welcomed. In lieu of native Lithium event tracking, it would be great to get this figured out.
As an interim solution, it would be great if we could tell in the Lithium Admin Metrics when the "Auto-suggest click-throughs" are coming through the Ask a Question Search component vs. the nav bar search component (screenshot of 2 components).
Thanks in advance, Lithium!
- iftomkins12 years agoMaven
AndrewF Happy Friday! Any word from LDN members about how track this? The Lithium community mailer reminded me to check in on this post. The ability to measure the effectiveness of the article suggestions is pretty key for us. Thanks!
- DougS12 years agoKhoros Oracle
Regarding adding Google Analytics (GA) logic in the hitbox content -- since the hitbox component (in a skin) falls below the core Lithium javascript, you should be fine putting your GA code there (that's what it's meant for in fact). I peronsally haven't worked with GA, but if you have specific questions about how to get GA working in the hitbox, ask them here, as other members of the LDN team have worked with it (I know YuriK has some experience with it).
Regarding your suggestion (about adding support in the Lithium Admin Metrics for differenciating between when the "Auto-suggest click-throughs" are coming through the Ask a Question Search component vs. the nav bar search component), I think that's a good idea and encourage you to submit it as an idea in our product ideas board (if you haven't done so already) -- let me know if you have and I'll give it a kudo to help vote it up.
-Doug