Relay docs
Implementation

Campaign banner

Create a campaign banner in Relay and mount it in the Shopify embed.

This page helps you create a clean campaign banner in Relay and publish it in the Shopify embed with the least amount of setup.

Campaign Banner

Minimum requirements

  • Complete Setup
  • Install the base Embed script
  • Create at least one campaign banner in Relay

Create the campaign banner

In Relay, do the following:

  1. Go to Campaigns.
  2. Choose the app you want the campaign banner to belong to.
  3. Add a title and description if you want visible copy.
  4. Add CTA buttons only if the campaign banner needs an action.
  5. Enable the campaign banner from the campaigns list when it is ready to go live.

Campaign banners are app-scoped, so each one belongs to a specific app.

Campaign Banner List

Mount only the campaign banner

<script src="https://app.superrelay.ai/embed/embed.js" data-token="YOUR_EMBED_TOKEN"></script>
<div id="relay-campaign-banner"></div>

If you only want the campaign banner surface, you do not need the other Relay embed containers.

Shopify context

The campaign banner uses window.shopify.config.shop to determine shop context.

That matters for:

  • shop-scoped visibility
  • dismiss state per shop
  • targeted display logic

CTA actions

Buttons support:

  • link
  • eval

If you use eval, write plain JavaScript that is safe to run inside the Shopify embedded app. Keep it small and intentional.

On this page