Campaign Editor: Design Step
The design step is where the appearance of the campaign widget is customized. It offers a range of options from layout, to copy, to position. It also includes the option for a custom CSS class for further visual customization.
Choosing a Layout
The first decision to make when designing a widget is what layout to use. It will dictate what options are available later on. There are five different layout options, and the availability of these options are based on the type of the campaign being edited.
- Modal: A full screen takeover experience that can be closed by clicking outside the modal, clicking the close button of the modal, or taking the intended call to action.
- Slideout: A small widget that occupies a corner of the screen. It does not interrupt the user's current task.
- Bar: A short widget that takes the full width of the screen and sits at the top of the page.
- Sticky Bar: A bar that scrolls with the page.
- Gate: A modal that cannot be closed unless the call to action is fulfilled.
Campaign Type Layout Compatability Matrix
|Layout||Drive Traffic||Collect Leads||Present a Message||Recommend Content|
Campaign widgets generally accept a Headline message and a Body message. However, both the Bar and Sticky Bar layouts only have one line of text, which is considered the Body message. Additionally, Drive Traffic and Collect Lead campaigns have Call to Action buttons, and the text for the button can be specified using the Call to Action message.
There is also an optional Image URL input. Any Image URL set here will be shown in the campaign widget above or beside the messaging.
Note: Lytics does not offer any image hosting. All images must be hosted elsewhere publically to work with Lytics Campaigns.
Setting a Campaign Position
Lytics campaigns can show up in various positions on a web page depending on the layout of the widget. The allowed positions will always show up as a dark gray color while the unallowed positions will be light gray. The active position is blue.
Layout Positions Compatability Matrix
Theming a Campaign
There are three ways to theme a campaign.
- Choose a theme: Lytics provides a Light and Dark theme out of the box.
- Build a custom theme: There are eight color options (described below) available to build a theme in the campaign editor.
- Use Custom CSS: By using your own custom CSS, Lytics provides no theme information, relying on CSS to style all campaign widget elements.
Custom Theme Color Options
- Background: The color of the background color of the widget.
- Headline: The text color of the headline message.
- Body Text: The text color of the body text.
- Close Button: The color of the '×' shape used as a close button.
- Submit Button Text: The color of the text in the call-to-action (or submit) button.
- Submit Button: The background color of the call-to-action (or submit) button.
- Cancel Button Text: The color of the text in the cancel (or dismiss) button.
- Cancel Button: The background color of the cancel (or dismiss) button.
Using Custom CSS for Theming
The Lytics Campaign Widgets are built using the Pathfora SDK. This SDK has its own docs. Read about using custom CSS with Pathfora.