Embed the top banner

Joris RenaudJoris Renaud
1 min read
Matching
Magma top banner displayed at the top of a web page to capture visitor attention immediately on arrival

The top banner: capture attention from the very first moment

The top banner is a horizontal strip displayed at the top of your web page. It's the first element your visitors see and is an excellent way to offer matching as soon as they land on your site. Ideal for homepages and event landing pages.

💡 The banner installation procedure is identical to the widget. It's the integration type chosen in your Magma campaign that determines the visual rendering.

Prerequisites

Step 1: Add the Magma script

At the end of the <head> tag (just before </head>):

<script src="https://cdn.jsdelivr.net/gh/magma-app/magma-widget@latest/src/widget/initializer.js" async></script>

Step 2: Declare your campaign

At the beginning or end of your <body> tag:

<script>
  window.magma_app = [
    {
      type: "campaignUuid",
      uuid: "xxxx",
      integrationUuid: "xxxx",
    },
  ];
</script>

Step 3: Replace the identifiers

<script>
  window.magma_app = [
    {
      type: "campaignUuid",
      uuid: "YOUR_CAMPAIGN_UUID",
      integrationUuid: "YOUR_INTEGRATION_UUID",
    },
  ];
</script>
Done! The top banner now appears at the top of your page and invites visitors to be connected with an ambassador.

Related Articles

Our ambassador strategy experts are ready to assist you

How to engage your ambassadors? How to reward them? How to manage actions over time? Our ambassador strategy consultants are here to turn your ideas into a successful ambassador program.

Joris R.

Joris Renaud

Ambassador strategy expert