Lytics Pathfora JS is a lightweight SDK for displaying personalized modules on your website. It integrates with your Lytics account to track user actions, and conditionally display modules based on your users' audience membership. This documentation will walk you through everything you need to create your own highly customized and personalized module. Code and live preview examples are provided along the way.
<!-- Pathfora Tag --> <script src="https://c.lytics.io/static/pathfora.min.js"></script>
Next you'll need to set up configuration for your module and initialize it with
initializeWidgets. Example configurations, settings, and their generated modules can be found throughout the documentation.
Here are a couple sections to get you started on the basics of Pathfora JS. See the navigation in the sidebar for a full list of docs.
This section acts as a reference for Pathfora's top level functions which will use the module configs you create to deploy modules on your website.
The type parameter relays information to the layout (see below) related to the type of content being rendered. Pathfora currently supports four types of modules: message, form, subscription and gate.
The layout controls the style (what does the module look like & how does it animate into view). Pathfora currently supports four different layouts for each of the types: modal, slideout, bar, and button.
This section will walk you through how to make your modules truly personalized by targeting them to a specific subset of your users as defined by your Lytics audiences.
Display conditions can control when the module is displayed based on the current date, previous actions of the user, current scroll position on the page, and many more settings.
Here we cover a few of the options for basic to full customization of the settings such as button and field names, color themes, look and feel.