Skip to main content

Troubleshoot

The troubleshoot methods are browser-console diagnostics for investigating why a Guides and Surveys content item does or does not appear on the current page. They're intended for developers and support engineers debugging targeting issues, not for use in application code. All methods are available on window.USETIFUL.troubleshoot.

The troubleshoot API is registered during full script initialization, so it becomes available once the usetiful:fullApiReady event has fired. Confirm it's ready before calling a method:

typeof window.USETIFUL?.troubleshoot?.checkTargeting === 'function'

For a non-developer walkthrough of the same tool—including a checklist of common reasons content doesn't appear—see Guides and Surveys: Troubleshooting in the Fullstory Help Center.


checkTargeting

Looks up a content item by type and ID, re-evaluates every targeting condition against the current page—without short-circuiting on the first failed condition—and prints a color-coded report to the console. Returns a structured result object containing the same information.

Parameters
  • contentType string required

    The content type to check: tour, checklist, banner, survey, or smartTips.

  • contentId number | string required

    The content item's ID. You can find it as part of the URL when editing the item in the Guides and Surveys UI.

Finding the contentId

When editing content in the Guides and Surveys UI, the ID's position in the URL varies by content type. In each example below, the highlighted portion is the contentId:

Content typeExample URL
Tour.../product-tours/creator/1663
Smart Tips.../smart-tips-group/edit/6
Checklist.../checklist/edit/01KD2WRD7K0ZDGF6543HB3PJDJ
Banner.../banner/edit/01KD2XRPBBDYHZCBYC83C3DX7W
Survey.../survey/1f114180-5433-696e-9bae-c58dac5b4d69/edit

Return value and console output

checkTargeting prints a color-coded report to the console and also returns the same information as a plain object, for use in your own debugging code.

Console output of window.USETIFUL.troubleshoot.checkTargeting for a survey blocked by targeting and by content throttling

The returned object contains:

FieldDescription
overallWhether the content matches the current page.
operatorHow the top-level conditions combine: AND or OR.
conditionsThe result of each top-level targeting condition.
subGroupsThe result of each targeting sub-group, each with its own operator, conditions, and overall.
throttlingWhether autoplayed content throttling is currently blocking this item. Only applies to tour and survey content—manually triggered content, and all other content types, are never throttled.

throttling.state reports one of the following:

StateMeaning
not_applicableContent type isn't subject to throttling.
offThrottling isn't enabled for the org.
ignoredSurvey has "ignore content throttling" set—always allowed.
allowing_allThrottling is on and currently allows this content.
allowing_specificBlocked by the survey-specific limit, but other content is still allowed.
blocking_allBlocked by the general limit—all autoplayed content is currently blocked.

Error behavior

Returns null and logs console.error when:

  • The content type is unknown.
  • No currently loaded content item matches the provided ID or ULID.