The issue is that there is a generic form hook that attach to all forms.
So if a page has a form on it, then it will execute track events on submit even if the page itself should be skipped in the condition plugin.
The agreement module for example works by forcing the user to remain on the agreement page until they accept it. This conflicts with the tracking of this module, but one might think that setting the condition plugin properly for those urls would solve the issue.
However unfortunately due to this issue, this is not possible to be solved this way.
Maybe we can check visibility inside
"function visitors_form_alter(&$form, FormStateInterface $form_state, $form_id) {"
and then that would solve the issue.
Comments