From 73fec0fc9308eb6ca50d57c74ed85b05ec7d1f19 Mon Sep 17 00:00:00 2001 From: "Fabien \"egg\" O'Carroll" Date: Mon, 15 Aug 2022 16:14:02 -0400 Subject: [PATCH] Added the memberAttribution alpha flag refs https://github.com/TryGhost/Team/issues/1801 This will allow us to develop behind a flag, and switch it to beta down the line. --- ghost/admin/app/services/feature.js | 1 + ghost/admin/app/templates/settings/labs.hbs | 13 +++++++++++++ ghost/core/core/shared/labs.js | 3 ++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ghost/admin/app/services/feature.js b/ghost/admin/app/services/feature.js index abcda8c98a..6610d2f767 100644 --- a/ghost/admin/app/services/feature.js +++ b/ghost/admin/app/services/feature.js @@ -61,6 +61,7 @@ export default class FeatureService extends Service { @feature('beforeAfterCard') beforeAfterCard; @feature('newsletterPaywall') newsletterPaywall; @feature('freeTrial') freeTrial; + @feature('memberAttribution') memberAttribution; _user = null; diff --git a/ghost/admin/app/templates/settings/labs.hbs b/ghost/admin/app/templates/settings/labs.hbs index f115d662c6..353866bd79 100644 --- a/ghost/admin/app/templates/settings/labs.hbs +++ b/ghost/admin/app/templates/settings/labs.hbs @@ -239,6 +239,19 @@ +
+
+
+

Member Attribution

+

+ Track which posts & pages are driving Member Subscriptions & Paid Conversions +

+
+
+ +
+
+
{{/if}} diff --git a/ghost/core/core/shared/labs.js b/ghost/core/core/shared/labs.js index 2927aefd39..111241a12e 100644 --- a/ghost/core/core/shared/labs.js +++ b/ghost/core/core/shared/labs.js @@ -28,7 +28,8 @@ const ALPHA_FEATURES = [ 'auditLog', 'urlCache', 'beforeAfterCard', - 'freeTrial' + 'freeTrial', + 'memberAttribution' ]; module.exports.GA_KEYS = [...GA_FEATURES];