Great question — answering as the UphillTech team:
xAPI would be the most flexible option. By default, any project published from Storyline to xAPI will give send xAPI statements for launching the project, visiting each slide, and closing the project. You can define your own custom xAPI statements for practically anything else (i.e., clicking a button, clicking an object, submitting a quiz, etc.). You'll need an LRS account to receive those xAPI statements. I've had good luck with the free tiers on Veracity Learning, Watershed LRS, and SCORM Cloud.
Full answer by jamesnotjim: https://stackoverflow.stackexchange.com/a/77977828 (CC BY-SA 4.0).
Need it done for your business? UphillTech.