From 4d3402d87683eaf055cf5e3d4dca237a1700dbfe Mon Sep 17 00:00:00 2001 From: Ash Yablok Date: Wed, 26 Aug 2026 14:03:39 -0700 Subject: [PATCH 1/5] update doc template for pathfora install --- docs/docs/examples/src/template.hbs | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/docs/docs/examples/src/template.hbs b/docs/docs/examples/src/template.hbs index 3a3c358..52d1011 100644 --- a/docs/docs/examples/src/template.hbs +++ b/docs/docs/examples/src/template.hbs @@ -30,10 +30,30 @@ { return ( (this.config = t), this.loadScript(t.src, function () { if (o.init === n) throw new Error('Load error!'); o.init(o.config), (function () { for (var n = 0; n < r.length; n++) { var t = r[n][0], i = r[n][1]; - o[t].apply(o, i); } r = void 0; })(); }), this ); }); })(); jstag.init({ - src: - 'https://c.lytics.io/api/tag/ea48c631489b0c19dd62ee5b40acca4b/latest.min.js', - stream: 'pathfora', pageAnalysis: { dataLayerPull: { disabled: true, }, }, + o[t].apply(o, i); } r = void 0; })(); }), this ); }); })(); + + jstag.init({ + src: 'https://c.lytics.io/api/tag/ea48c631489b0c19dd62ee5b40acca4b/latest.min.js', + stream: 'pathfora', + pageAnalysis: { dataLayerPull: { disabled: true } }, + + // These examples only demo the Pathfora SDK itself, so opt out of the + // personalization features the demo account has turned on server side: + // - `entity.preload` makes the tag fetch the visitor profile on every + // example page load through its iframe transport + // (GET /api/personalize//user/_uid//iframe). + // - `pathfora.publish`/`pathfora.preview` pull the demo account's + // published experiences and can render real campaigns on top of the + // widget the example is meant to show. + // Those two modules are also what normally ask the tag to install the + // SDK, so `install.sdk.lazy: false` is required to keep the install + // (and the `pathfora.install.done` event below) working without them. + entity: { preload: false }, + pathfora: { + install: { sdk: { lazy: false } }, + publish: { disabled: true }, + preview: { disabled: true }, + }, });