Challenge/Programme Stats workaround

Hello

I use the programme/challenge app, and I try to monitor the members’ achievements programmatically.
Indeed the challenge report is based on a participant_id that is nowhere connected to contact_id or member_id. The participant name is unreliable because if the contact changes his name, it does not replicate in the participant_id.

ok
So I am looking for a simple workaround. I tried to embed a window with a code in my programme lessons, but most recent browsers see that (legitimately) as code injection to it gets stopped.

I thought about adding a code to the programme lesson’s page and searching for the code in the window when the programme is displayed, But I can’t find a way to do that.

Any other clever workaround?

Thank you

When I display the page where the programme is, if I look into the HTML code, I can see the name of the programme and the number of the lesson
I could use that as a workaround

Anyone would know how to search specific text in the html code of the current page?

Thank you