Link Search Menu Expand Document

Campaign Full Element

Overview

The Campaign Full Element shows an incentive campaign from Spaaza. Unlike a Campaign Promotion Element this Element includes all the details about a campaign, including campaign notes and terms and conditions. The content shown is also personalised to the user, depending on the campaign type.

Campaigns are created and managed in Spaaza Console and a campaign’s styling (background colours and images, etc) can also be managed here.

Using the Campaign Full Element

To include a Campaign Full Element on a webpage do the following:

  • Add the following script tags at the top of the page
<script type="module" src="https://elements.spaaza.com/elem/spaaza-environment.js"></script>
<script type="module" src="https://elements.spaaza.com/elem/spaaza-campaign-full.js"></script>
  • Add the Environment tag to the contents of the page (below the script tags). Include the Campaign Full Element within the Environment tag
<spaaza-environment config="your_config_goes_here">
    <spaaza-campaign-full id="12345" ></spaaza-campaign-full>
    <!-- other Spaaza Elements and HTML goes here  -->
</spaaza-environment>    

Element Properties

The following optional properties can be passed:

Property Description
id (optional) The id of the campaign. You can get this from Spaaza Console