Shopify Forms embedded app not triggering form_submitted event in analytics API/Web Pixel Extension

I’m working on a Web Pixel Extension as part of an analytics app. The pixel currently subscribes to all standard events and custom events to fire requests to tracking URLs. This works great for the standard events like checkout_submitted, page_viewed, product_added_to_cart.

We are trying to extend functionality to include form_submitted, as some of our clients would like to track this event in addition to checkout_submitted. Ideally, this will work no matter how they have chosen to include the form on their online store pages. However, during testing using the Shopify Forms app as a theme app embed, a form_submitted event is not emitted when the form is submitted. Other forms (e.g. adding a product to cart) trigger this event in the frontend analytics API.

Is this expected behavior? Is there a reason the form_submitted event wouldn’t fire? The form created by the Shopify Forms app is a standard form element in the DOM, so I’m curious why the Web Pixel Extension isn’t capturing the submission. To confirm, we have subscribed our pixel to all DOM events during testing. Other events are firing fine (“clicked”, etc.)

Feel free to move topic or suggest a better area in the forum.

1 Like