Skip to content
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

feat: UTM all mobile links #9905

Merged
merged 2 commits into from
Mar 12, 2024
Merged
Changes from 1 commit
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
14 changes: 7 additions & 7 deletions templates/web/common/site_layout.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,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>
<li><a href="[% edq(lang('get_the_app_link')) %]">[% lang('install_the_app_to_add_products') %]</a></li>
<li><a href="[% edq(lang('get_the_app_link')) %]&utm=pro_platform_install_the_app_to_add_products_[% language %]">[% lang('install_the_app_to_add_products') %]</a></li>
Copy link
Contributor

Choose a reason for hiding this comment

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

&utm should be ?utm

Copy link
Member Author

Choose a reason for hiding this comment

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

@stephanegigandet fixed, thanks.

<li><a href="/cgi/product.pl?type=search_or_add&action=display">[% lang('add_product') %]</a></li>
[% ELSE %]
<li><label>[% lang("import_and_export_products") %]</label></li>
Expand Down Expand Up @@ -196,7 +196,7 @@
<li><a href="[% edq(lang('menu_discover_link')) %]" class="top-bar-links">[% lang('menu_discover') %]</a></li>
<li><a href="[% edq(lang('menu_contribute_link')) %]" class="top-bar-links">[% lang('menu_contribute') %]</a></li>
<li class="show-for-xlarge-up"><a href="[% edq(lang('footer_producers_link')) %]" class="top-bar-links">[% lang('footer_producers') %]</a></li>
<li class="flex-grid getapp"><a href="[% edq(lang('get_the_app_link')) %]" class="buttonbar button" style="top:0;">[% display_icon('phone_android') %] <span class="bt-text">[% lang('get_the_app') %]</span></a></li>
<li class="flex-grid getapp"><a href="[% edq(lang('get_the_app_link')) %]&utm=search_and_links_promo_[% language %]" class="buttonbar button" style="top:0;">[% display_icon('phone_android') %] <span class="bt-text">[% lang('get_the_app') %]</span></a></li>
</ul>
</section>
[% END %]
Expand Down Expand Up @@ -241,7 +241,7 @@
<!-- full width banner on mobile -->

[% IF mobile %]
<a href="[% mobile.link %]" id="mobile-app-top-banner" class="button large expand success">
<a href="[% mobile.link %]&utm=mobile-app-top-banner-[% language %]" id="mobile-app-top-banner" class="button large expand success">
<div class="row collapse">
<div class="small-6 columns">
[% mobile.text %]
Expand Down Expand Up @@ -325,10 +325,10 @@ <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">
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('ios_app_link')) %]"><img src="[% edq(lang('ios_app_icon_url')) %]" alt="[% edq(lang('ios_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a>
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('android_app_link')) %]"><img src="https://static.openfoodfacts.org[% edq(lang('android_app_icon_url')) %]" alt="[% edq(lang('android_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a>
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('windows_phone_app_link')) %]"><img src="[% edq(lang('windows_phone_app_icon_url')) %]" alt="[% edq(lang('windows_phone_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a>
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('android_apk_app_link')) %]"><img src="https://static.openfoodfacts.org[% edq(lang('android_apk_app_icon_url')) %]" alt="[% edq(lang('android_apk_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a>
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('ios_app_link')) %]&utm=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>
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('android_app_link')) %]&utm=install_the_app_android_footer_[% language %]"><img src="https://static.openfoodfacts.org[% edq(lang('android_app_icon_url')) %]" alt="[% edq(lang('android_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a>
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('windows_phone_app_link')) %]&utm=install_the_app_windows_footer_[% language %]"><img src="[% edq(lang('windows_phone_app_icon_url')) %]" alt="[% edq(lang('windows_phone_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a>
<a class="cell small-50 medium-25 large-25 h-space-short v-align-center" href="[% edq(lang('android_apk_app_link')) %]&utm=install_the_app_apk_footer_[% language %]"><img src="https://static.openfoodfacts.org[% edq(lang('android_apk_app_icon_url')) %]" alt="[% edq(lang('android_apk_app_icon_alt_text')) %]" loading="lazy" class="full-width"></a>
</div>
</div>
</div>
Expand Down
Loading