In a WIX page, I added an element “integrated HTML”.
My code is a list of questions with answers to choose in dropdown menus.
At the end, the user click on a button and it generates a text.
I would like to track the interaction with my code.
Basically, when a user generates the text, I would like to trigger a datalayer event or a piwik custom event to track his answers.
I presume you have access to the code you added - you could try sending an event to the data layer when the text is generated (including the answers as variables) and then set up a custom event tag with a data layer event trigger:
There is an option to create a data layer variable in Piwik PRO tag manager, so you can also track the answers (as custom dimensions, for example)
I also tried a direct implementation of GA4 through the Wix integration
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.