Project

General

Profile

Actions

Feature #21220

open

Workbench 2 supports Google Analytics

Added by Brett Smith 10 months ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
Category:
Workbench2
Target version:
Story points:
-

Description

Add a configuration setting to Workbench 2 that supports a Google Tag. If set, Workbench 2 generates the necessary HTML to load and report to Google Analytics using that tag.

Version 1 of this integration can be the simplest possible integration: it just needs to report when someone loads Workbench. More detailed activity tracking can be done in a follow-up story.

The necessary HTML is below. TAG_ID is the value from configuration anywhere it appears.

  <!-- Google tag (gtag.js) -->
  <script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'TAG_ID');
  </script>

There's also a package to integrate react with Google Analytics 4, which tracks navigation actions within the app:

https://www.npmjs.com/package/react-ga4

Implementation

Need to add an public exported config item to the Workbench section that has the google analytics tag.

Once we have retrieved the configuration, we can set up react-ga4 in the init function.


Subtasks 1 (1 open0 closed)

Task #21438: ReviewNewLisa KnoxActions
Actions #2

Updated by Brett Smith 10 months ago

  • Description updated (diff)
Actions #4

Updated by Peter Amstutz 10 months ago

  • Target version changed from Future to Development 2024-01-17 sprint
  • Description updated (diff)
Actions #5

Updated by Peter Amstutz 9 months ago

  • Target version changed from Development 2024-01-17 sprint to Development 2024-01-31 sprint
Actions #6

Updated by Peter Amstutz 9 months ago

  • Target version changed from Development 2024-01-31 sprint to Development 2024-02-14 sprint
Actions #7

Updated by Peter Amstutz 8 months ago

  • Release set to 69
Actions #8

Updated by Peter Amstutz 8 months ago

  • Description updated (diff)
Actions #9

Updated by Peter Amstutz 8 months ago

  • Assigned To set to Lisa Knox
Actions #10

Updated by Peter Amstutz 8 months ago

  • Target version changed from Development 2024-02-14 sprint to Development 2024-02-28 sprint
Actions #11

Updated by Peter Amstutz 8 months ago

  • Tracker changed from Idea to Feature
Actions #12

Updated by Peter Amstutz 8 months ago

  • Target version changed from Development 2024-02-28 sprint to Development 2024-03-13 sprint
Actions #13

Updated by Peter Amstutz 7 months ago

  • Release deleted (69)
Actions #14

Updated by Peter Amstutz 7 months ago

  • Assigned To deleted (Lisa Knox)
Actions #15

Updated by Peter Amstutz 7 months ago

  • Target version changed from Development 2024-03-13 sprint to Development 2024-03-27 sprint
Actions #16

Updated by Peter Amstutz 7 months ago

  • Target version changed from Development 2024-03-27 sprint to Development 2024-04-10 sprint
Actions #17

Updated by Peter Amstutz 6 months ago

  • Target version changed from Development 2024-04-10 sprint to Development 2024-04-24 sprint
Actions #18

Updated by Peter Amstutz 6 months ago

  • Target version changed from Development 2024-04-24 sprint to Development 2024-05-08 sprint
Actions #19

Updated by Peter Amstutz 6 months ago

  • Target version changed from Development 2024-05-08 sprint to Development 2024-06-05 sprint
Actions #20

Updated by Peter Amstutz 6 months ago

  • Target version changed from Development 2024-06-05 sprint to Development 2024-05-08 sprint
Actions #21

Updated by Peter Amstutz 5 months ago

  • Assigned To set to Lisa Knox
Actions #22

Updated by Peter Amstutz 5 months ago

  • Assigned To changed from Lisa Knox to Stephen Smith
Actions #24

Updated by Peter Amstutz 5 months ago

  • Target version changed from Development 2024-05-08 sprint to Development 2024-05-22 sprint
Actions #25

Updated by Peter Amstutz 5 months ago

  • Target version changed from Development 2024-05-22 sprint to 439
Actions #26

Updated by Peter Amstutz 4 months ago

  • Target version changed from 439 to Development 2024-07-03 sprint
Actions #27

Updated by Peter Amstutz 4 months ago

  • Release set to 70
Actions #28

Updated by Peter Amstutz 4 months ago

  • Target version changed from Development 2024-07-03 sprint to Development 2024-07-24 sprint
Actions #29

Updated by Peter Amstutz 4 months ago

  • Target version changed from Development 2024-07-24 sprint to Development 2024-08-07 sprint
Actions #30

Updated by Peter Amstutz 3 months ago

  • Target version changed from Development 2024-08-07 sprint to Future
Actions #31

Updated by Peter Amstutz about 2 months ago

  • Release deleted (70)
Actions

Also available in: Atom PDF