Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,12 @@ const experimentsForPageMetrics: ExperimentsForPageTypeMetrics = [
{
// EXPERIMENT: Continue Reading button for articles
pageType: ARTICLE_PAGE,
activeExperiments: [
'newswb_ws_read_more_b',
'newswb_ws_tod_article',
'newswb_ws_pwa_promo_prompt',
],
activeExperiments: ['newswb_ws_read_more_b', 'newswb_ws_tod_article'],
},
{
// EXPERIMENT: Homepage Time of Day Adaptive Curations & EXPERIMENT: PWA Promotional Banner
// EXPERIMENT: Homepage Time of Day Adaptive Curations
pageType: HOME_PAGE,
activeExperiments: ['newswb_ws_tod_homepage', 'newswb_ws_pwa_promo_prompt'],
activeExperiments: ['newswb_ws_tod_homepage'],
},
];

Expand Down
9 changes: 1 addition & 8 deletions src/app/pages/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ const HomePage = ({ pageData }: HomePageProps) => {
experimentType: ExperimentType.CLIENT_SIDE,
});

// EXPERIMENT: PWA Promotional Banner
const pwaPromoBannerExperimentName = 'newswb_ws_pwa_promo_prompt';
const pwaPromoBannerVariant = useOptimizelyVariation({
experimentName: pwaPromoBannerExperimentName,
experimentType: ExperimentType.SERVER_SIDE,
});

// if variant is set to 'homepage_time_of_day_a' or 'homepage_time_of_day_b' then reorder curations
if (
timeOfDayVariant === 'homepage_time_of_day_a' ||
Expand Down Expand Up @@ -169,7 +162,7 @@ const HomePage = ({ pageData }: HomePageProps) => {
</div>
</div>
</main>
{(timeOfDayVariant || pwaPromoBannerVariant) && (
{timeOfDayVariant && (
<OptimizelyPageMetrics trackPageView trackPageDepth />
)}
</>
Expand Down
Loading