This guide will walk you through embedding Census segment management into your own application.
iframe
embedded in your application, pointing to a Census segment management link. To see a working example, check out our Embedded Demo application (source code).
This component allows end users to create and manage their Census segments from your application.
Initial Setup
iframe
in. For instance, https://my-site.com
. Only approved URLs
are allowed to embed these components. Before you get started, you’ll
need to provide your Census account manager with your URL(s), or reach
out to us at support@getcensus.com.Generate a Segment Management Link
Embed the Segment Management Link in an iframe
Handle events from the iframe
iframe
emits events using the postMessage API.
The following events are available to help you manage the iframe
lifecycle, via the data
property of the message:LoadedThis event indicates the iframe
is ready to be shown to the user.