Access Click Events in parts of dotlottie in javascript

I saw this video tutorial:
https://youtu.be/ZV4UkQhwN-E?si=gMFWMpqKZACPpR8L

In it, the creator…

  1. creates a lottie (json) in AE

  1. uses #name in the comps he wants to access in javascript

  2. then searches for the #name by ID in javascript and is able to access clicks

Can I do the same thing for dotLotties? I tried the same approach but for some reason I do not get any click response. I do have a few differences so I am curious if it is even possible. Pointing me to a tutorial or information would be very helpful.

Thanks,
T