Skip to content
Open
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
12 changes: 8 additions & 4 deletions PixelDefinitions/pixels/wide_free_trial_conversion.json5
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
"key": "feature.data.ext.free_trial_plan",
"description": "The base plan ID of the free trial product activated",
"enum": [
"ddg.privacy.pro.monthly.renews.us",
"ddg-privacy.pro.monthly.renews.us",
"ddg.privacy.pro.monthly.renews.row",
"ddg.privacy.pro.yearly.renews.us",
"ddg.privacy.pro.yearly.renews.row"
"ddg.privacy.pro.yearly.renews.row",
"ddg-privacy.pro.sandbox.monthly.renews.us",
"ddg.privacy.pro.sandbox.monthly.renews.row",
"ddg.privacy.pro.sandbox.yearly.renews.us",
"ddg.privacy.pro.sandbox.yearly.renews.row"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent plan ID prefix between monthly and yearly plans

The plan ID naming shows an inconsistency after this change. Only US monthly plans use the ddg-privacy prefix (with hyphen), while US yearly plans still use ddg.privacy (with dot). Specifically, ddg-privacy.pro.monthly.renews.us and ddg-privacy.pro.sandbox.monthly.renews.us use hyphen, but ddg.privacy.pro.yearly.renews.us and ddg.privacy.pro.sandbox.yearly.renews.us use dot. If the fix to use hyphen is correct for monthly plans, the yearly US plans may need the same update.

Fix in Cursor Fix in Web

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nalcalag shouldn't all of these use hyphens instead of dots as separators? I assume values should match what we have in SubscriptionConstants.kt:

    // List of plans
    const val YEARLY_PLAN_US = "ddg-privacy-pro-yearly-renews-us"
    const val MONTHLY_PLAN_US = "ddg-privacy-pro-monthly-renews-us"
    const val YEARLY_PLAN_ROW = "ddg-privacy-pro-yearly-renews-row"
    const val MONTHLY_PLAN_ROW = "ddg-privacy-pro-monthly-renews-row"

]
},
{
Expand All @@ -36,12 +40,12 @@
"enum": ["expired", "timeout"]
},
{
"key": "feature.data.ext.step.vpn_activated_d1.success",
"key": "feature.data.ext.step.vpn_activated_d1",
"description": "true if VPN was successfully activated within first day of Free Trial",
"enum": ["true", "false"]
},
{
"key": "feature.data.ext.step.vpn_activated_d2_to_d7.success",
"key": "feature.data.ext.step.vpn_activated_d2_to_d7",
"description": "true if VPN was successfully activated between D2-D7 of Free Trial",
"enum": ["true", "false"]
}
Expand Down
Loading