0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Fixed counting subscribe after click on RecommendationsPage

fixes https://github.com/TryGhost/Product/issues/3892

After a user visited a site, we should still a subscribe that happens later.
This commit is contained in:
Simon Backx 2023-09-15 16:02:40 +02:00 committed by Simon Backx
parent ccf508e8f7
commit 9a4c0ba33b

View file

@ -194,10 +194,7 @@ const RecommendationItem = (recommendation) => {
siteUrl: url,
throwErrors: true
});
if (!clicked) {
onAction('trackRecommendationSubscribed', {recommendationId: recommendation.id});
setClicked(true);
}
setSubscribed(true);
} catch (_) {
// Open portal signup page