Conditional goal tracking

Overview

Logic Hop goals let you track meaningful events, and Gravity Forms gives you flexible conditional logic. Combining them lets you trigger a goal only when a visitor meets specific criteria on the form. HTML content areas in Gravity Forms are used to determine whether the user is eligible or ineligible; you can leave those areas empty if you prefer not to show a message before submission.

Wiring it up

Use the Gravity Forms gform_post_render jQuery hook to evaluate the form after it renders and set the Logic Hop goal for eligible users. Reference the Logic Hop Goals and Conditions docs and the Gravity Forms add-on to connect the pieces.

  • Use HTML content areas to flag eligibility
  • Hook gform_post_render to evaluate and set the goal
  • Reference the Logic Hop Gravity Forms add-on for setup

Questions this page should answer

How do I trigger a goal only for eligible Gravity Forms users?

Use Gravity Forms HTML content areas to flag eligibility and the gform_post_render hook to set the Logic Hop goal when the criteria are met.