Track embedded HTML code with GA4/Piwik Pro

Question:
Is it possible to track HTML code embedded with GA4 or Piwik Pro?

Product:
Wix Editor

What are you trying to achieve:
I added an interactive form on my Wix website : the user answers to several questions, and at the end, it generates a text.
I want to track the answers in GA4 or Piwik Pro.

What have you already tried:

In both cases, Piwik Pro debug or Google Tag Assistant can’t track the interaction with my embeded html code.
They track the page, all interaction with the WIX page. But Nothing in my Embedded html code.

I already tried :

  • Add in my Embedded code the GA4 tracking
  • Generate a data layer
  • Generate a GA4 / Piwik Pro event hardcoded in my Embedded code

In all cases, the debug views can’t track Nothing.
It seems there is no communication between the Embedded code and the tracking.

Any idea to help me?