Using Logic Hop with Pages & Posts

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

The Logic Hop tool is available within the WordPress page and post editors, located beneath the content editor.

Page 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

Page Tool Lead Score

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 click Update or Publish. The Goal will be set each time the page is loaded.

Click here to learn how to create Goals.

Page Tool Goal on Load

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 click Update or Publish. 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.

Click here to learn how to create Conditions.

Page Tool Conditional Goal

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 click Update or Publish.

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.

Click here to learn about using Javascript with Logic Hop.

Page Tool Javascript Event

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

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

Redirect Page 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 click Update or Publish.

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

Page Tool Redirect

The settings depicted above would redirect a user to the page “Friday Detals” on the current website when the “Today is Friday” Condition was evaluated as true.

Please 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 “/”.

External Redirect

Page Tool External Redirect

The settings depicted above would redirect a user to the external website Giphy.com when the “Today is Friday” Condition was evaluated as true.