Using Logic Hop with Drip

Note: Drip functionality requires the Logic Hop Drip Add-on.

Drip & Logic Hop

Logic Hop integrates with Drip to provide personalization using your Drip data. You can easily display any Drip data and custom field on your website to create an engaging, personalized experience. Drip tags can be used in Logic Hop Conditions to determine what content to display and when to display it. Drip Tags and Event Actions can be added and removed based on a user’s activity on your site.

NOTE: Drip data is dynamically loaded via the Drip API. If you have caching enabled, be sure to enable Javascript Tracking in the Logic Hop Settings panel and use Javascript Conditions and Javascript Data Variables rather than Shortcodes. Learn more about caching.

Configuring Drip

If you haven’t already, install the Drip Email Marketing WordPress Plugin.

After installing the Logic Hop & Drip plugin, locate your Drip Account ID found at at:

Drip Settings > Site Setup > 3rd Party Integrations

Drip Account ID

And locate your Drip API Token found at at:

User Settings > API Token

Drip API Token

Enter your Drip Account ID & API Token on the Logic Hop Settings page.

Drip Settings

Sending Drip Data to Logic Hop

Drip user data is made available to Logic Hop by passing identifying data appended to links from Drip Forms and Broadcasts as query string values.

The minimum required query string value is “drip_email”:

http://website.com/?drip_email=name@domain.com

Drip Forms

Use the following Drip form settings to enable data to Logic Hop for new users.

  • Add a Post-Signup: Custom Post-Submission Page with a URL to a page on your site
  • Check Post-Signup: Redirect to a post-submission page after the widget is submitted
  • Check Post-Signup: Send subscriber data to post-submission page
  • Drip will automatically append the user’s email address to the URL
  • Drip user data is available once the user is redirected to the custom post-submission page on your site

Drip Form Settings

Drip Links

Append the following query string code to your Broadcast & email links to enable Drip data for users on your site.

?drip_email={{subscriber.email}}&logichop={{subscriber.logichop}}

Drip Link Variables

NOTE: The query string code is available to copy and paste from the Drip page under the Logic Hop settings menu.

Logic Hop uses cookies to access users’ Drip data on future visits. To ensure consistency across devices, append the above query string to all Drip links directed to your site.

Additional query string parameters can be added as necessary. Append them after the Logic Hop required values, starting with an ampersand instead of a question mark, such as:

&utm_campaign=spring+campaign

Using Drip Data with Shortcodes

Logic Hop provides a variety of integration points for Drip. One of the most useful is displaying Drip user data within WordPress content using Shortcodes or PHP.

Drip Data via Shortcodes

Shortcodes can be added from the Logic Hop tool in the WordPress Page/Post editor. Click the Drip tab, select a value and click “Insert Shortcode”.

Drip Shortcodes

The Logic Hop Data Shortcode is a single block of code which appears as:

[logichop_data var="Drip.email"]

If the data is available for the user, it will be displayed on the page. Shortcodes can be nested within HTML tags and also within Logic Hop Condition Shortcodes.

The Logic Hop Shortcode tool will display all Drip variables available to your account. As you add new Drip variables, it may be necessary to reload the WordPress Page/Post editor to view the newly added fields.

Drip Data via PHP

Drip data can be accessed via PHP for use in themes. Pass the variable name as a string into the $logichop->get_data() function.

Echo Drip data via PHP:

global $logichop;
$logichop->get_data('Drip.email');

Return Drip data via PHP:

global $logichop;
$logichop->get_data('Drip.email', false);

A list of Logic Hop variables can be viewed on the Condition Type & Operator Reference page.

Using Drip Data with Conditions

Drip Tags and Custom Fields can be used as parameters in Logic Hop Conditions. The Logic Hop Condition Builder will display all Tags and Custom Fields available to your account. Conditions can test if a Tag has been set or not set and if a Custom Field is equal, or not equal to a specific value.

Drip Conditions

Setting Drip Tags & Event Actions with Goals

As Logic Hop Goals are triggered, Drip Tags and Event Actionss can be set or removed. The Logic Hop Goal editor will display all Tags available to your account.

Drip Tags, Events & Custom Fields

Tags

Select the option to Add or Remove a Tag and select the Tag to add/remove. When the Goal is triggered, the Tag will be added or removed for the user’s Drip account.

Event Actions

Select the option to Add an Event Action and enter the value to add. When the Goal is triggered, the Event Action will be added to the user’s Drip account.

  • Event Action field can be
    • Any data type – Numeric, characters, spaces or punctuation
    • Any Logic Hop variables using Liquid-style markup:
      • {{LeadScore}}
      • {{Date.DateTime}}
      • {{QueryStore:#variable_name#}}

Leave or set the Tag and Event Action selectors blank to disable adding or removing Tags and Event Actions.

Custom Fields

Select the Custom Field to update, the update method and enter a value. When the Goal is triggered, the Custom Field will be updated for the user’s Drip account.

Update Methods:

  • Set value to
    • Sets the Custom Field to the value specified
    • Any data type – Numeric, characters, spaces or punctuation
    • Any Logic Hop variables using Liquid-style markup:
      • {{LeadScore}}
      • {{Date.DateTime}}
      • {{QueryStore:#variable_name#}}
  • Increment value by
    • Adds the value specified to the current value of the Custom Field
    • Must be a number – Whole numbers or decimal numbers
    • If existing field value is not a number or is zero, it will be replaced by the value specified
  • Decrement value by
    • Subtracts the value specified from the current value of the Custom Field
    • Must be a number – Whole numbers or decimal numbers
    • Decremented values will stop at zero

Leave or set the Custom Field selectors blank to disable updating Custom Fields.

Drip Variable Reference

  • DripID
  • Drip
    • id
    • email
    • created_at
    • custom_fields
      • custom fields
    • tags
      • tags
    • gravatar
      • url
        • fullsize
        • large
        • medium
        • small
        • thumb
        • id
      • img
        • fullsize
        • large
        • medium
        • small
        • thumb
        • id