Quick Reference

Overview

Logic Hop provides a variety of options for easily adding Conditions and Goals to WordPress pages and posts.

The Logic Hop Page/Post Tool is available within the WordPress page and post editors, located beneath the content editor.

Note: If you are using Gutenberg, the Logic Hop Page/Post Tool and Logic Hop Tool Palette will not be available within your editor. Read more about Logic Hop with Gutenberg.

Logic Hop Page/Post Tool

Logic Hop Page/Post Tool

Lead Scores

The Lead Scores setting determines if a Lead Score is incremented when the page or post is loaded. Learn more about Lead Scores.

Logic Hop Lead Score

  • Value to increment Lead Score by when goal is completed
  • Increment Options
    • Increment on every view
    • Increment on first view only
    • Increment on first view each session

Set Goal on Page Load

To set a goal on page load, select a goal from the Set Goal on Page Load select menu and publish or update the page/post. The goal will be set every time the page is loaded.

Learn more about goals.

Set Goal on Condition

To set a goal on page load when a condition is met, select a condition and goal from the Set Goal on Condition select menus and publish or update the page/post. The goal will be set each time the page is loaded and the condition is met.

To set a goal on page load when a condition is not met, click the Condition Not Met checkbox.

Learn more about conditions.

Set Goal on Javascript Event

To set a goal when a Javascript event is triggered, select an event and goal from the Set Goal on Javascript Event select menus and enter a CSS class or ID in the Element field, then publish or update the page/post.

The goal will be set each time the Javascript event is triggered for the HTML element with the specified CSS class or ID.

CSS classes and IDs must include the “.” or “#” prefix. Multiple CSS classes and/or IDs can be entered if separated by commas.

Learn more about using Javascript with Logic Hop.

The Javascript Event depicted above would be triggered when the following element was clicked:

<div id="carousel"></div>

Redirect on Condition

To redirect users to a different page when a condition is met, select a condition from the Redirect Page on Condition select menu and enter a URL in the Redirect to Page/URL field, then publish or update the page/post.

Redirects are performed using the WordPress wp_redirect(); function and issued with a 302 status code.

To redirect users when a condition is not met, click the Condition Not Met checkbox.

Internal Redirect

The settings depicted above would redirect a user to the page /friday-deals on the current website when the Today is Friday condition was evaluated as true.

Note: For Internal Redirects, redirecting to pages on the current website, either use the full URL, or specify the relative path to the page starting with a forward slash.

External Redirect

The settings depicted above would redirect a user to the external website https://logichop.com when the Today is Friday condition is evaluated as true.