diff --git a/src/desktop/components/main_layout/templates/scripts.jade b/src/desktop/components/main_layout/templates/scripts.jade index 74d9582bc37..93c7ffdcecc 100644 --- a/src/desktop/components/main_layout/templates/scripts.jade +++ b/src/desktop/components/main_layout/templates/scripts.jade @@ -122,6 +122,10 @@ if !sd.THIRD_PARTIES_DISABLED analytics.load("#{sd.SEGMENT_WRITE_KEY}"); }}(); +if !sd.THIRD_PARTIES_DISABLED + script( type="text/javascript" ). + ;(function(z,i,p,c,o,d,e){z[c]||(z[c]=function(){(z[c].q=z[c].q||[]).push(arguments)},z[c].q=z[c].q||[],d=i.createElement(p),d.async=1,d.src=o,e=i.getElementsByTagName(p)[0],e.parentNode.insertBefore(d,e))})(window,document,"script","letterpress","//scripts.postie.com/exxiuhdt/lp.1.js");window.letterpress('trackPageView'); + //- Wire up sharify if sharify != sharify.script() diff --git a/src/v2/index.ejs b/src/v2/index.ejs index edf8943ef8d..be55a526bed 100644 --- a/src/v2/index.ejs +++ b/src/v2/index.ejs @@ -82,6 +82,18 @@ })(); <%% } %> + + <%% if (!disable.postie && !sd.THIRD_PARTIES_DISABLED) { %> + + <%% } %> + diff --git a/src/v2/server.ts b/src/v2/server.ts index 80812a2bdaf..8677f402c59 100644 --- a/src/v2/server.ts +++ b/src/v2/server.ts @@ -89,10 +89,11 @@ app.get(flatRoutes, async (req: Request, res: Response, next: NextFunction) => { style: styleTags, }, disable: { - segment: getServerParam(req, "disableSegment") === "true", + analytics: getServerParam(req, "disableAnalytics") === "true", + postie: getServerParam(req, "disablePostie") === "true", sailthru: getServerParam(req, "disableSailthru") === "true", + segment: getServerParam(req, "disableSegment") === "true", stripe: getServerParam(req, "disableStripe") === "true", - analytics: getServerParam(req, "disableAnalytics") === "true", }, env: NODE_ENV, fontUrl: WEBFONT_URL,