0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Pendo Staging 環境でPublicガイドを表示させない方法

0
Posted at

PendoのガイドをPublicにするとStaging環境含め全環境にガイドが公開されてしまいます。

公開前のガイドをStaging環境で試したいのに、公開中のガイドが邪魔してうまく表示テストができないというケースあるかと思います。

その場合、以下のコードをStaging環境のpendo.initialize関数に挿入することでstagedガイドだけ表示できます。

pendo.initialize({
    events: {
        deliverablesLoaded: function() {
            pendo.guides = pendo.guides.filter(guide => guide.state != 'public');
        }
    }
})

もしくは、

pendo.initialize({
    guides: {
        globalScripts: [
            {
                beforeMount: function (evt) {
                    if (evt.step.guide.state == 'public') {
                        evt.cancel = true;
                    }
                }
            }
        ]
    }
});
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?