Platform Simulations

Mock popular form platforms: HubSpot, Marketo, Pardot, Typeform, and more

What These Tests Cover

Each form platform has unique behaviors: global objects, DOM injection, hidden fields, specific endpoints, and submission patterns. These simulations test if the SDK can capture identity from platform-specific implementations.

HubSpot-like Form

hbspt.forms

Simulates HubSpot form with hutk cookie and portal ID.

Platform Traits:
  • window.hbspt global object
  • DOM injection into container div
  • AJAX to /forms/submit/{portalId}/{formId}
  • hutk cookie tracking field

Click to load HubSpot-style form

Expected: pp event captured from HubSpot-style AJAX submission

Marketo-like Form

MktoForms2

Simulates Marketo with MktoForms2.loadForm() and callback pattern.

Platform Traits:
  • window.MktoForms2 global
  • loadForm() method creates form
  • Hidden fields: mktcId, formid
  • Callback-based submission

Click to load Marketo-style form

Expected: pp event from dynamically injected Marketo form

Pardot-like Form

iframe embed

Simulates Pardot iframe embed with pi_key tracking.

Platform Traits:
  • Form loads inside iframe
  • Hidden field: pi_key
  • POST to /l/{formId}/handler
  • Thank-you displayed inside iframe
Expected: Network interception may capture (iframe same-origin)

Typeform-like Widget

modal popup

Simulates Typeform popup/modal form that opens on button click.

Platform Traits:
  • Modal/popup overlay
  • Opens on button click
  • JSON submission to API
  • Close modal on success
Expected: pp event captured from modal form submission

Gravity Forms-like

WordPress AJAX

Simulates WordPress Gravity Forms with admin-ajax.php pattern.

Platform Traits:
  • POST to /wp-admin/admin-ajax.php
  • action parameter in form data
  • Form ID in hidden field
  • Inline AJAX response
Expected: pp event from WordPress AJAX pattern

Custom SPA Form

React/Vue style

Simulates React-style controlled inputs with state management.

Platform Traits:
  • Controlled inputs (simulated state)
  • State management pattern
  • JSON POST to REST API
  • SPA-style DOM updates
State: {}
Expected: pp event from SPA form with state management
[Ready] Platform Simulation Tests Loaded