I'm a beginner in Sitecore. I need to generate the data which provides how many times the user clicks a button on the webpage. The data should be stored on MongoDB database. I'm confused with where to start and how to. Suggest some references or samples to continue.

  • 2
    Please edit your question to include: 1) what exactly you want to achieve; 2) what you have tried so far. Also, refer to this: sitecore.stackexchange.com/help/how-to-ask. At this point, your question is considered too broad and doesn't meet the quality standards of our site. – Dmytro Shevchenko Dec 13 '17 at 10:39
  • The question has been edited. – rams Dec 13 '17 at 12:44

You could take a look at existing SBOS modules: https://marketplace.sitecore.net/Modules/S/SitecoreSBOSLinkTracker.aspx?sc_lang=en

This module extends the Link Manager to add a capability to set a link click to trigger a Page event.

The page events end up in the Sitecore Analytics and can be used for your reporting.

Another option is to write custom code. I wrote a blog post a while back about integrating AddThis with a custom goal (replace the addthis with you button and you have a possible solution).

If feasable, I would go for the SBOS module though. Will be more flexible..

NOTE: The SBOS Modules, while they work, can be buggy, depending on the needs of your solution. So make sure you test appropriately before deploying to a production environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.