Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-24806

Product Analytics: Reset Pendo/Intercom when Segment reloads

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Unset
    • No
    • Plat-Ex Sprint 59, Plat-Ex Sprint 60
    • Critical

      Note: This bug is Jake's fault basically

      Whenever Segment reloads, we need to reset Pendo and Intercom to make sure the Pendo and Intercom configs update.

      When Segment re-initializes: https://github.com/RedHatInsights/insights-chrome/blob/6f9b3416869a606ce395de19d846300d2105980c/src/analytics/SegmentProvider.tsx#L196

      Also run this:

      if (window.Intercom) {
        window.Intercom('shutdown');
      }
      if (window.pendo) {
        window.pendo.flushNow();
        window.pendo.setGuidesDisabled(true);
        window.pendo.stopGuides();
        window.pendo.stopSendingEvents();
        window.pendo = undefined;
      }
      

              mmarosi123 Martin Marosi
              jlucky@redhat.com Jacob Lucky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: