Working with your theme developer, you can add an event listener snippet to your theme's code to trigger events that can be tracked in Google Analytics 4.
This event can be designed for any event you'd like, but the code snippet above is the general format.
The general format of the code snippet is:
document.addEventListener('seguno::popup::subscribe', event => {
window.dataLayer.push({ event: 'seguno-popup-submissions', email: event.detail.submission.email });
});
WARNING: Please consult your theme developer when doing this. Editing your theme.liquid file without proper coding knowledge can break things within your Shopify store.