-
-
Notifications
You must be signed in to change notification settings - Fork 400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: UTM mobile #10665
fix: UTM mobile #10665
Conversation
fix: UTM mobile
@@ -51,6 +51,7 @@ | |||
<li><a href="[% edq(lang('menu_contribute_link')) %]">[% lang('menu_contribute') %]</a></li> | |||
<li class="divider"></li> | |||
<li><label>[% lang("add_products") %]</label></li> | |||
<!-- For reference: get_the_app_link_off" = /open-food-facts-mobile-app" --> | |||
<li><a href="[% edq(lang_flavor('get_the_app_link')) %]?utm_source=off&utf_medium=web&utm_campaign=pro_platform_install_the_app_to_add_products_[% language %]">[% lang('install_the_app_to_add_products') %]</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<li><a href="[% edq(lang_flavor('get_the_app_link')) %]?utm_source=off&utf_medium=web&utm_campaign=pro_platform_install_the_app_to_add_products_[% language %]">[% lang('install_the_app_to_add_products') %]</a></li> | |
<li><a href="[% edq(lang_flavor('get_the_app_link')) %]&utm_source=off&utf_medium=web&utm_campaign=pro_platform_install_the_app_to_add_products_[% language %]">[% lang('install_the_app_to_add_products') %]</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no question mark in the root URL, I believe @hangy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_the_app_link is in po files @stephanegigandet @hangy
@@ -242,13 +244,15 @@ | |||
<!-- full width banner on mobile --> | |||
|
|||
[% IF mobile %] | |||
<a href="[% mobile.link %]?utm_source=off&utf_medium=web&utm_campaign=mobile-app-top-banner-[% language %]" id="mobile-app-top-banner" class="button large expand success"> | |||
<!-- For reference: mobile.link = https://play.google.com/store/apps/details?id=org.openfoodfacts.scanner --> | |||
<a href="[% mobile.link %]&utm_source=off&utf_medium=web&utm_campaign=mobile-app-top-banner-[% language %]" id="mobile-app-top-banner" class="button large expand success"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will fail on an iphone / ipad.
One solution is to add the start of the utm fields to the url in Config_off.pm, so that mobile.link already contains utm=[off|obf...]&utm_medium=web
Same for options.ios_app_link etc.
That way we can just add ?utm_campaign in all cases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: utf_medium
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add utm_medium and utm_source in Config_[off|obf...].pm and then only add ?utm_campaign
@@ -328,8 +332,11 @@ <h1 class="if-empty-dnone">[% title %]</h1> | |||
</div> | |||
</div> | |||
<div class="cell small-100 medium-100 large-50 flex-grid v-align-center direction-row"> | |||
<!-- msgid "https://apps.apple.com/app/open-beauty-facts/id1122926380" --> | |||
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% options.ios_app_link %]?utm_source=off&utf_medium=web&utm_campaign=install_the_app_ios_footer_[% language %]"><img src="[% edq(lang('ios_app_icon_url')) %]" alt="[% edq(lang('ios_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the utm_source / medium need to be removed for ios too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you
/lint |
/update_tests_results |
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
🤖 I have created a release *beep* *boop* --- ## [2.41.0](v2.40.0...v2.41.0) (2024-08-13) ### Features * generate historical events from product revisions ([#10523](#10523)) ([42508e1](42508e1)) * sync number of product public/pro in CRM ([#10684](#10684)) ([026ff6a](026ff6a)) ### Bug Fixes * 3 fixes to make /products/[code1],[code2] work again ([#10669](#10669)) ([7fc07fc](7fc07fc)) * Automatically unselect images when source image is deleted ([#10692](#10692)) ([588897a](588897a)) * **docs:** correct OpenAPI definition by fixing missing reference ([#10659](#10659)) ([4f0f10e](4f0f10e)) * gen_users_emails.pl ([#10686](#10686)) ([00e4c26](00e4c26)) * Show missing nutrients in Nutri-Score panel ([#10655](#10655)) ([a1b11eb](a1b11eb)) * UTM mobile ([#10665](#10665)) ([965041d](965041d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Screenshot
fix: UTM mobile