GitHub - ChapelR/tw-analytics: Quickly add Google analytics to Twine games (and other web apps) from the command line.
This hasn't been updated in 2 years, but it's a tool for adding Google Analytics tracking to Twine games. While getting xAPI to work with Twine is still probably the ideal option for most learning applications, analytics data would provide a lot of useful info too.