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.

Issue fork visitors-3586586

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

nagy.balint created an issue. See original summary.

bluegeek9 made their first commit to this issue’s fork.

  • bluegeek9 committed b34cc686 on 3.0.x
    fix: #3586586 Generic form alter hook makes a page track even if page is...
bluegeek9’s picture

Status: Active » Fixed
//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation, including:
  • Triage issues and adding more context to existing issues.
  • Writing documentation or patches for this project.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • bluegeek9 committed ccde2aff on 8.x-2.x
    fix: #3586586 Generic form alter hook makes a page track even if page is...