site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

Four events are being tracked when we submit WP Forms with the Popup Maker plugin active.

Open mohitwp opened this issue 1 year ago • 0 comments

Bug Description

I've noticed an edge case while testing WP Forms conversion tracking alongside the Popup Maker plugin. After closing the popup from Popup Maker and submitting the form, four 'Submit_lead_form' events are being tracked. Ideally, it should track only two events: one for analytics and one for Ads. When I deactivated Popup Maker, only two events were tracked, which is as expected. Note : Tracking for Popup Maker alongside the WP Forms plugin is working fine.

Steps to reproduce

  1. Set up Site kit with Analytics.
  2. Set up Ads module.
  3. Install WP Forms and Pop up maker plugin.
  4. Set up both plugins.
  5. In front end close pop up. (Pop up Maker)
  6. Submit WP form.
  7. See four events are getting tracked.
  8. Disable Popup maker plugin.
  9. Submit WP form.
  10. Now, 2 events are getting track 1 for analytics and 1 for ads module which is expected.

Screenshots

image

image

https://github.com/google/site-kit-wp/assets/94359491/490870ef-4c1a-4cb5-879a-74558a0007a5

When popup maker is disabled

image

Additional Context

  • PHP Version:
  • OS: [e.g. iOS]
  • Browser: [e.g. chrome, safari]
  • Plugin Version: [e.g. 22]
  • Device: [e.g. iPhone6]

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

Implementation Brief

  • [ ]

Test Coverage

QA Brief

Changelog entry

mohitwp avatar Jul 01 '24 12:07 mohitwp