Optimize for non-Webflow sites

Create or edit a custom goal

Updated

Track custom goal events and define how conversions are measured.

Custom goals track conversions based on goal events — actions you define separately. Once you pick one or more goal events, you choose goal measurement settings to define how and when conversions are counted. These are the most flexible goal types — letting you combine event triggers with measurement rules to fit the behavior you want to track.

Goal events

Custom goals are powered by goal events — actions you define to track as conversions. Each custom goal listens for one or more goal events and applies your chosen measurement settings to count those conversions. Goal event types include:

  • Click — tracks clicks on a page element using a CSS selector, with optional JavaScript
  • View — tracks page loads, with optional JavaScript conditions
  • API — tracks when sendEvent() is called, with an optional conversion value

Goal measurement settings

After you select a goal event, you’ll configure how and when Optimize counts conversions.

Conversion scope:

  • Per session — counts at most one conversion per visitor session
  • Per user — counts at most one conversion per visitor, even across sessions

Multiple conversions per visitor:

  • Count once — only the first conversion is counted
  • Count all — every conversion is counted

Conversion value:

  • No — conversions don’t include a value
  • Same value — every conversion has a fixed, numeric value
  • Dynamic value — each conversion includes a value passed when triggering the event. Your sendEvent() call must include a valid value for the goal to track correctly.

Create a custom goal

Open your Optimize site in Webflow, then:

  1. Click Optimizations in the Navigation panel
  2. Click an optimization
  3. Click the Options icon > Edit Configuration
  4. Click the Goals tab
  5. Click Add goal
  6. Rename the goal
  7. Select Custom and click Continue
  8. Select one or more goal events
  9. Configure your goal measurement settings
  10. Click Set as target to use it as the target goal
  11. Click Create

Edit a custom goal

Open your Optimize site in Webflow, then:

  1. Click Optimizations in the Navigation panel
  2. Click an optimization
  3. Click the Options icon > Edit Configuration
  4. Click the Goals tab
  5. Select a goal and make your edits:
    • Add a goal event — use the [#] events selected dropdown to select another event
    • Remove a goal event — click the Options icon > Remove event
    • Update the goal measurement settings
  6. Click Save