Skip to content

Commit

Permalink
feat: UTM all mobile links (#9905)
Browse files Browse the repository at this point in the history
* feat: UTM all mobile links

* Update site_layout.tt.html
  • Loading branch information
teolemon authored and john-gom committed May 24, 2024
1 parent 2648cb0 commit a9e9a12
Showing 1 changed file with 7 additions and 7 deletions.
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>
<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

0 comments on commit a9e9a12

Please sign in to comment.