Embed your Propeller screen in your Website.
Steps To Install
Contact support@propellerbonds.com
Give them your url and ask to be included in the Propeller Content Security Policy (CSP)
You must install an Iframe plugin, we have used the one by webvitaly on this site and it is available on the wordpress plugins directory.
You Iframe won't work until Propeller has completed this work sorted out your CSP and you have a separate Iframe plugin installed.
If you supply a Google Analytics 4 ID we can imbed that into your site so you get an instant google commerce screen of results.
We also support PostHog if you want a deeper level of insighs. Please provide your posthog id and we can set this up as well.
Manually Download your Propeller Wordpress plugin here:
propeller-embed-plugin(It auto Updates after this) This plugin is open source feel free to unzip and reverse engineer it.
How it works:
Once the plugin is installed and configured it can be used in two ways:
1. To bring up an Iframe of the main site in your site - just use the [propeller_embed] short code
2. To call a specific bond - where you include the Url and parameters.
Limitations:
Only one iframe can be used per page
If a specific bond is called and not used for 5 minutes it times out. If it times out you need to refresh the page to get the specific bond back. Just hitting the time out button takes you back to an all bond search.
This needs Third Party Cookies enabled for this site by the browser user. It will notify users if they need to enable them.
Apple Safari is not supported at the moment as it will not accept site based third party cookies.
DEMO Make your selection below see both in action.
Diagnostics in DevTools
Good path
Received message event
Handshake init accepted
Posted to confirmed parent origin
then later:
Detected state: success
Posted to confirmed parent origin
Failure path 1: parent origin rejected
You will see:
Rejected parent message: origin not allowed
That means your WordPress page origin is not exactly in allowedParentOrigins.
Failure path 2: instance mismatch
You will see:
Rejected handshake init: instanceId mismatch
That means the iframe URL does not contain the same propeller_embed_instance the parent sent.
Failure path 3: no query param
You will see:
Rejected handshake init: no propeller_embed_instance in URL
That means the plugin is not actually injecting the param into the real iframe URL, or the iframe app is stripping it during redirects.
