From 6e7873f8349a1e201f8735ffd090327072687aee Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Thu, 8 Sep 2022 21:02:40 +0300 Subject: [PATCH] Add link to UTM builder (#2195) * Add link to UTM builder * Changelog entry --- CHANGELOG.md | 1 + .../js/dashboard/stats/sources/source-list.js | 23 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71fed0dc7..2136c38d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ All notable changes to this project will be documented in this file. - The time format (12 hour or 24 hour) for graph timelines is now presented based on the browser's defined language - Choice of metric for main-graph both in UI and API (visitors, pageviews, bounce_rate, visit_duration) plausible/analytics#1364 - New width=manual mode for embedded dashboards plausible/analytics#2148 +- Add link to UTM builder in the campaigns report plausible/analytics#2195 ### Fixed - Hash part of the URL can now be used when excluding pages with `script.exclusions.hash.js`. diff --git a/assets/js/dashboard/stats/sources/source-list.js b/assets/js/dashboard/stats/sources/source-list.js index 2eb9b0c17..de0de2674 100644 --- a/assets/js/dashboard/stats/sources/source-list.js +++ b/assets/js/dashboard/stats/sources/source-list.js @@ -317,7 +317,7 @@ export default class SourceList extends React.Component { leaveFrom="transform opacity-100 scale-100" leaveTo="transform opacity-0 scale-95" > - +
{dropdownOptions.map((option) => { return ( @@ -338,6 +338,27 @@ export default class SourceList extends React.Component { ) })}
+
+ + {({ active }) => ( + + UTM Tag builder + + + + + + )} + +