Skip to content

Commit

Permalink
Remove VPN headline experiment code (Fixes #14721)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson committed Jul 30, 2024
1 parent 341dc94 commit f296a07
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 97 deletions.
25 changes: 0 additions & 25 deletions bedrock/products/templates/products/vpn/landing-refresh.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@
{% set _utm_campaign = 'vpn-product-page' %}
{% set _params = '?utm_source=' ~ _utm_source ~ '&utm_medium=referral&utm_campaign=' ~ _utm_campaign %}

{% block experiments %}
{% if switch('experiment-vpn-headlines', ['en-US', 'en-CA', 'en-GB', 'fr', 'de']) %}
{{ js_bundle('mozilla-vpn-landing-headlines-experiment') }}
{% endif %}
{% endblock %}

{% block page_css %}
{{ css_bundle('protocol-split') }}
{{ css_bundle('protocol-picto')}}
Expand All @@ -51,17 +45,6 @@
{% endwith %}
{% endblock %}

{% if LANG == "de" %}
{% set headline_exp_v2_sub = 'Schalte den Rundumschutz für Webaktivitäten und Standort vor Hackern und Trackern ein.' %}
{% set headline_exp_v3_sub = 'Schütze deine Online-Aktivitäten und deinen Standort mit nur einem Klick.' %}
{% elif LANG == "fr" %}
{% set headline_exp_v2_sub = 'Masquez intégralement vos activités sur le Web et votre emplacement aux yeux des hackers et des traqueurs.' %}
{% set headline_exp_v3_sub = 'Protégez vos activités numériques et votre emplacement en un seul clic.' %}
{% else %}
{% set headline_exp_v2_sub = 'Switch on complete web activity and location protection from hackers and trackers.' %}
{% set headline_exp_v3_sub = 'Protect your digital activity and physical location with just one click.' %}
{% endif %}

{% block content %}
<main>
{% call split(
Expand All @@ -87,15 +70,7 @@
media_class='mzp-l-split-h-center',
media_after=True
) %}
{% if entrypoint_experiment == 'vpn-headlines' and entrypoint_variation == '2' %}
<h1 class="u-title-xl">{{ ftl('vpn-landing-powerful-privacy-for-peace') }}</h1>
<h2 class="c-page-subtitle u-title-xs">{{ headline_exp_v2_sub }}</h2>
{% elif entrypoint_experiment == 'vpn-headlines' and entrypoint_variation == '3' %}
<h1>Mozilla VPN</h1>
<h2 class="c-page-subtitle u-title-xs">{{ headline_exp_v3_sub }}</h2>
{% else %}
<h1>{{ ftl('vpn-landing-powerful-privacy-for-peace') }}</h1>
{% endif %}

{% if vpn_available %}
<p class="c-main-cta">
Expand Down
4 changes: 2 additions & 2 deletions bedrock/products/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ def vpn_landing_page(request):
entrypoint_variation = request.GET.get("entrypoint_variation", None)

# ensure experiment parameters matches pre-defined values
if entrypoint_variation not in ["1", "2", "3"]:
if entrypoint_variation not in []:
entrypoint_variation = None

if entrypoint_experiment not in ["vpn-headlines"]:
if entrypoint_experiment not in []:
entrypoint_experiment = None

if ftl_file_is_active("products/vpn/landing-2023") and experience != "legacy":
Expand Down
64 changes: 0 additions & 64 deletions media/js/products/vpn/landing-experiment-headlines.es6.js

This file was deleted.

6 changes: 0 additions & 6 deletions media/static-bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -1768,12 +1768,6 @@
],
"name": "mozilla-vpn-landing"
},
{
"files": [
"js/products/vpn/landing-experiment-headlines.es6.js"
],
"name": "mozilla-vpn-landing-headlines-experiment"
},
{
"files": [
"js/products/shared/affiliate-init.es6.js"
Expand Down

0 comments on commit f296a07

Please sign in to comment.