The plugin area is blank or refuses to load
Branduo only lets approved origins show the plugin. The origin in the browser address bar must match one Support approved, exactly, includinghttp or https. For example, these are three different origins:
https://admin.example.comhttp://admin.example.comhttps://example.com
The script doesn’t load
Use this exact loader URL:integrity value must match the one published at https://connect.branduo.io/loader/v2.0.0/brand-connect.js.sri, and the script tag needs crossorigin="anonymous".
If your app uses a Content Security Policy, allow https://connect.branduo.io in:
script-srcframe-srcchild-src
The container shows “Brand partnerships couldn’t load”
The plugin shows this inside your container when an option is missing or malformed:platformIdmust be your platform ID, a UUID.domainmust be the merchant’s store domain, such asbrand.comorbrand.myshopify.com.
domain before it calls BrandConnect.init.
BrandConnect.init throws an error
The loader throws a TypeError when:
containerdoesn’t match an element on the page.modeis anything other than"page"or"drawer".onEventoronCloseis not a function.
The merchant sees “Brand partnerships aren’t available here yet”
Your platform ID isn’t set up to show cross-promotion offers yet. Contact Support.The merchant doesn’t come back to your app after approving their plan
Check that:- Support has the page where the plugin lives, on an approved origin.
- You synced the merchant’s store domain with Sync platform brands.
- That page calls
BrandConnect.initwhen it loads. The loader handles the?branduo_connect=returnparameter.
The drawer closes unexpectedly
The drawer callsonClose when the merchant closes it with the Close button, the backdrop, or the Escape key, and when your code calls close().
Calling destroy() removes the plugin without calling onClose.
