Listen on the site that contains the embed
Create a feedback widget for the published form and install its embed on your authorized website. Give the embed element the ID feedback-placement for the examples below. The element emits wiztrom:widget-complete after the form accepts a response. Use a payment or booking confirmation to count those separate actions.
Use a Google Tag Manager custom event
On a page with your existing container, push an event into the data layer when the visitor has granted the relevant consent. Replace window.siteConsent with the consent check already used on your website. In Tag Manager, use a Custom Event trigger named wiztrom_response_accepted and require the tag’s own consent settings. Transfer the event name only.
const analyticsPlacement = document.getElementById('feedback-placement');
analyticsPlacement?.addEventListener('wiztrom:widget-complete', () => {
if (navigator.globalPrivacyControl || navigator.doNotTrack === '1') return;
if (window.siteConsent?.analytics !== true) return;
window.dataLayer?.push({ event: 'wiztrom_response_accepted' });
});Use the Meta Pixel already installed on your site
For an existing Meta Pixel, trigger a custom event only when the visitor grants the advertising consent required by your site. Replace window.siteConsent with your site’s consent check. If you deliver the same Meta event through Tag Manager, use that single configured path to avoid counting a response twice.
const advertisingPlacement = document.getElementById('feedback-placement');
advertisingPlacement?.addEventListener('wiztrom:widget-complete', () => {
if (navigator.globalPrivacyControl || navigator.doNotTrack === '1') return;
if (window.siteConsent?.advertising !== true) return;
if (typeof window.fbq === 'function') {
window.fbq('trackCustom', 'WiztromResponseAccepted');
}
});Verify the accepted-response trigger
Test on your staging page with a synthetic form. Preview your tag behavior with consent off, then with consent on. The event should fire once after an accepted response. Inspect the event before using it in a live campaign. Keep answers, contact details, URLs and response identifiers out of the tag.