sitecore6 - Sitecore track page clicks -


i'm building website in sitecore , have faq page consists of series of headers associated divs hide/unhide selected. i've been asked track these header clicks can sort faq items on page. how go storing click information in sitecore analytics?

i've found many questions , answers how query sitecore's default page-load behavior, how go tracking how many times particular div has been viewed?

assuming you're using dms, should able configure goals correspond each header section. may have trigger completion of goal in code:

if (sitecore.analytics.tracker.isactive && sitecore.analytics.tracker.currentpage != null) {         pageeventdata eventdata = new pageeventdata("my goal name");         eventdata.data = "this event data.";         visitordataset.pageeventsrow pageeventsrow = sitecore.analytics.tracker.currentpage.register(eventdata);         sitecore.analytics.tracker.submit(); } 

then have @ reports see how effective each faq section is.

hope helps.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -