In this example, we create custom variables that can be used in Custom Component Blocks, such as modals, footers, or in-page content blocks.
We add a Meter Remaining count to a website footer, which displays on the site as illustrated below:
We trigger the meter
variable on page views. To do this, we use a sub rule, and the a Trial with remaining counts defined.
In this example, we do the following:
- Create and host the component, then add it to the Component Library
- Create a sub rule containing a trial using remaining views to allow us to run a custom script
- Build the main rule