diff --git a/freesound/settings.py b/freesound/settings.py index 38fd5f514..06ff8d0ad 100644 --- a/freesound/settings.py +++ b/freesound/settings.py @@ -832,7 +832,6 @@ # ------------------------------------------------------------------------------- # Analytics PLAUSIBLE_AGGREGATE_PAGEVIEWS = True -PLAUSIBLE_SEPARATE_FRONTENDS = True # ------------------------------------------------------------------------------- # Rabbit MQ diff --git a/general/templatetags/plausible.py b/general/templatetags/plausible.py index dfe313091..a3790d5b1 100644 --- a/general/templatetags/plausible.py +++ b/general/templatetags/plausible.py @@ -27,5 +27,4 @@ @register.inclusion_tag('templatetags/plausible_scripts.html', takes_context=False) def plausible_scripts(): aggregate_pageviews = settings.PLAUSIBLE_AGGREGATE_PAGEVIEWS - separate_frontends = settings.PLAUSIBLE_SEPARATE_FRONTENDS - return {'aggregate_pageviews': aggregate_pageviews, 'separate_frontends': separate_frontends} + return {'aggregate_pageviews': aggregate_pageviews} diff --git a/templates/molecules/plausible_scripts.html b/templates/molecules/plausible_scripts.html index 9cd3b1ee8..a11dcbc73 100644 --- a/templates/molecules/plausible_scripts.html +++ b/templates/molecules/plausible_scripts.html @@ -6,7 +6,6 @@ redactedUrl = redactedUrl.replace(/people\/(\w+)\//ig, "people/_ID_/"); // Replace usernames redactedUrl = redactedUrl.replace(/browse\/geotags\/(\w+)\//ig, "browse/geotags/_TAG_/"); // Replace tag frm geotags redactedUrl = redactedUrl.replace(/browse\/tags\/.*/ig, "browse/tags/_TAGS_/"); // Replace multiple tags form tags - {% if separate_frontends %}redactedUrl = redactedUrl.replace('freesound.org/', 'freesound.org/BW/'); // Alter path to indicate NG front end{% endif %} plausible('pageview', { u: redactedUrl }); {% else %}