Skip to content

Commit

Permalink
fix: add UTMs for contact methods
Browse files Browse the repository at this point in the history
  • Loading branch information
teolemon authored Dec 1, 2024
1 parent 47b6ee3 commit 2f53a81
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class UserPreferencesConnect extends AbstractUserPreferences {
List<UserPreferencesItem> getChildren() => <UserPreferencesItem>[
_getListTile(
title: appLocalizations.contact_title_newsletter,
url: 'https://link.openfoodfacts.org/newsletter-en',
url: 'https://link.openfoodfacts.org/newsletter-en?utm_source=off&utf_medium=mobile_app&utm_campaign=settings_contact',
leadingIconData: CupertinoIcons.news_solid,
),
_getListTile(
Expand Down Expand Up @@ -112,25 +112,25 @@ class UserPreferencesConnect extends AbstractUserPreferences {
),
_getListTile(
title: appLocalizations.blog,
url: 'https://blog.openfoodfacts.org',
url: 'https://blog.openfoodfacts.org/?utm_source=off&utf_medium=mobile_app&utm_campaign=settings_contact',
leadingIconData: Icons.newspaper,
),
_getDivider(),
_getListTile(
title: appLocalizations.support_via_forum,
url: 'https://forum.openfoodfacts.org/',
url: 'https://forum.openfoodfacts.org/?utm_source=off&utf_medium=mobile_app&utm_campaign=settings_contact',
leadingIconData: Icons.forum,
),
_getListTile(
title: appLocalizations.support_join_slack,
url: 'https://slack.openfoodfacts.org/',
url: 'https://slack.openfoodfacts.org/?utm_source=off&utf_medium=mobile_app&utm_campaign=settings_contact',
leadingIconData: Icons.chat,
),
_getDivider(),
_getListTile(
title: appLocalizations.contact_title_pro_page,
url: ProductQuery.replaceSubdomain(
'https://world.pro.openfoodfacts.org/',
'https://world.pro.openfoodfacts.org/?utm_source=off&utf_medium=mobile_app&utm_campaign=settings_contact',
),
leadingIconData: Icons.factory_outlined,
),
Expand All @@ -148,7 +148,7 @@ class UserPreferencesConnect extends AbstractUserPreferences {
_getListTile(
title: appLocalizations.contact_title_press_page,
url: ProductQuery.replaceSubdomain(
'https://world.openfoodfacts.org/press',
'https://world.openfoodfacts.org/press?utm_source=off&utf_medium=mobile_app&utm_campaign=settings_contact',
),
leadingIconData: CupertinoIcons.news_solid,
),
Expand Down

0 comments on commit 2f53a81

Please sign in to comment.