Home > widget-integration > FilterController > appIntegration

FilterController.appIntegration() method

Executes third-party app integrations for the filter. Triggers integration callbacks for external apps and custom scripts.

This method is an extension hook that allows third-party apps to integrate with the filter system by executing registered integration callbacks.

Signature:

protected appIntegration(): void;

Returns:

void

Remarks

This method is called after DOM updates to ensure third-party scripts can access the latest filter state and product elements. Common integrations include review apps, wishlist features, and custom tracking scripts.

Example

Override to add custom integration logic:

window.boostWidgetIntegration.extend('FilterController', (FilterController) => {
  return class CustomFilterController extends FilterController {
    appIntegration() {
      super.appIntegration();

      // Initialize custom review app integration
      if (window.CustomReviewApp) {
        window.CustomReviewApp.init({
          container: this.document,
          productSelector: '.boost-sd__product-item'
        });
      }
    }
  };
});