# How to track user behavior data

**URL:** <https://discuss.openedx.org/t/how-to-track-user-behavior-data/8644>\
**Category:** Development\
**Tags:** nutmeg\
**Created:** [November 3, 2022, 5:30am UTC](https://discuss.openedx.org/t/how-to-track-user-behavior-data/8644 "2022-11-03T05:30:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![braden](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/braden/32/46_2.png) [@braden](https://discuss.openedx.org/u/braden)\
**Post date:** [November 9, 2022, 7:34pm UTC](https://discuss.openedx.org/t/how-to-track-user-behavior-data/8644/3 "2022-11-09T19:34:34Z")

</div>

@Shailendra_Kumar I don’t know anything about user behavior tracking, sorry. You’ll have to find a third party service that offers it, and then they’ll give you an HTML snippet and you can use [a custom theme](https://github.com/openedx/edx-platform/blob/e76e0c4a07b4679c1690bdfa825a9c15673c2ef2/themes/README.rst) or [template override](https://docs.djangoproject.com/en/4.1/howto/overriding-templates/) to insert that HTML into [the LMS main.html](https://github.com/openedx/edx-platform/blob/db32ff2cdf678fa8edd12c9da76a76eef0478614/lms/templates/main.html#L132-L177) template. If you use the “Learning MFE” instead of the “legacy” learning experience, then I don’t know how to insert analytics JS - someone else [was recently asking](https://discuss.openedx.org/t/help-including-google-analytics-in-learning-mfe/8293) too. Hopefully someone else can answer.

---

_[View the full topic](https://discuss.openedx.org/t/how-to-track-user-behavior-data/8644)._
