From f34c90e26cb037e1e9cb3f187fceb4ee6c380a88 Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Fri, 17 Dec 2021 16:00:06 +0200 Subject: [PATCH] Show UTM term and content --- assets/js/dashboard/stats/sources/source-list.js | 2 +- lib/plausible_web/controllers/stats_controller.ex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/dashboard/stats/sources/source-list.js b/assets/js/dashboard/stats/sources/source-list.js index 68e05c88e..cd5a398b5 100644 --- a/assets/js/dashboard/stats/sources/source-list.js +++ b/assets/js/dashboard/stats/sources/source-list.js @@ -293,7 +293,7 @@ export default class SourceList extends React.Component { renderTabs() { const activeClass = 'inline-block h-5 text-indigo-700 dark:text-indigo-500 font-bold active-prop-heading truncate text-left' const defaultClass = 'hover:text-indigo-600 cursor-pointer truncate text-left' - const dropdownOptions = ['utm_medium', 'utm_source', 'utm_campaign'] + const dropdownOptions = ['utm_medium', 'utm_source', 'utm_campaign', 'utm_term', 'utm_content'] let buttonText = UTM_TAGS[this.state.tab] ? UTM_TAGS[this.state.tab].label : 'Campaigns' return ( diff --git a/lib/plausible_web/controllers/stats_controller.ex b/lib/plausible_web/controllers/stats_controller.ex index 04316a862..192d6f465 100644 --- a/lib/plausible_web/controllers/stats_controller.ex +++ b/lib/plausible_web/controllers/stats_controller.ex @@ -70,8 +70,8 @@ defmodule PlausibleWeb.StatsController do {'utm_mediums.csv', fn -> Api.StatsController.utm_mediums(conn, params) end}, {'utm_sources.csv', fn -> Api.StatsController.utm_sources(conn, params) end}, {'utm_campaigns.csv', fn -> Api.StatsController.utm_campaigns(conn, params) end}, - # {'utm_contents.csv', fn -> Api.StatsController.utm_contents(conn, params) end}, - # {'utm_terms.csv', fn -> Api.StatsController.utm_terms(conn, params) end}, + {'utm_contents.csv', fn -> Api.StatsController.utm_contents(conn, params) end}, + {'utm_terms.csv', fn -> Api.StatsController.utm_terms(conn, params) end}, {'pages.csv', fn -> Api.StatsController.pages(conn, limited_params) end}, {'entry_pages.csv', fn -> Api.StatsController.entry_pages(conn, params) end}, {'exit_pages.csv', fn -> Api.StatsController.exit_pages(conn, limited_params) end},