@codebards/ik-embeddable-form 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -398,7 +398,34 @@ No other files need to change. The platform supports **25+ variants** this way.
398
398
 
399
399
  ### GTM
400
400
 
401
- Events are pushed to `window.dataLayer` automatically. Configure your GTM triggers on:
401
+ The embed can **load its own GTM container** (per architecture doc) so form conversions work on Lovable / Framer / plain HTML without host-page GTM.
402
+
403
+ | Setting | Default | Purpose |
404
+ |---------|---------|---------|
405
+ | `VITE_GTM_ID` | `GTM-P335R9N` (staging/prod) | Container injected when form opens |
406
+ | `loadGtm` in `IKForm.open()` | `true` | Set `false` on WordPress if the theme already loads the same container |
407
+ | `gtmContainerId` in `IKForm.open()` | build-time ID | Optional override (e.g. dedicated embed container) |
408
+
409
+ ```ts
410
+ // Self-contained LP (embed loads GTM)
411
+ IKForm.open({ eventName: '...', webinarType: 'REGULAR', site: 'organic', variant: 'default' });
412
+
413
+ // WordPress page that already has GTM-P335R9N in the theme
414
+ IKForm.open({ ..., loadGtm: false });
415
+ ```
416
+
417
+ **dataLayer events** (WordPress parity + embed lifecycle):
418
+
419
+ | When | Event |
420
+ |------|--------|
421
+ | Contact step success | `new_webinar_registration_form_submitted` |
422
+ | Slot proceed | `wordpress_form_submitted` (`formName: "Webinar Slot Selection"`) |
423
+ | Profile step | `pa_new_webinar_registration_form_submitted` (conversion — Meta / Google Ads / LinkedIn) |
424
+ | Form open / step view | `form_open`, `form_step_view`, … |
425
+
426
+ GTM fires **marketing pixels**. **Clickstream** (`ve2lt1a8il/qa` → BigQuery) is separate — see above.
427
+
428
+ Events are pushed to `window.dataLayer`. Configure GTM triggers on:
402
429
 
403
430
  - `form_open` — fired when modal opens
404
431
  - `form_close` — fired when modal closes