site-kit-wp
site-kit-wp copied to clipboard
Four events are being tracked when we submit WP Forms with the Popup Maker plugin active.
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
- Set up Site kit with Analytics.
- Set up Ads module.
- Install WP Forms and Pop up maker plugin.
- Set up both plugins.
- In front end close pop up. (Pop up Maker)
- Submit WP form.
- See four events are getting tracked.
- Disable Popup maker plugin.
- Submit WP form.
- Now, 2 events are getting track 1 for analytics and 1 for ads module which is expected.
Screenshots
https://github.com/google/site-kit-wp/assets/94359491/490870ef-4c1a-4cb5-879a-74558a0007a5
When popup maker is disabled
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
- [ ]