311-data icon indicating copy to clipboard operation
311-data copied to clipboard

Configure Google Analytics platform for 311-Data to gather user interaction data

Open sanjumv opened this issue 1 year ago • 4 comments

Overview

We need to be able to gather Google Analytics (GA) metrics on user interaction with the 311 Data site and eventually be able to set up specific watch tags on certain UI elements

Action Items

  • [ ] attempt to log into GA using [email protected] (the site just requires gmail login)
    • [ ] determine if UA-166263401-1 belongs to our profile
    • [ ] determine if OPT-WHKV393 belongs to our profile
    • [ ] if neither were present or valid, generate a new ID to become associated with our site FOR 311-data.org, and https://hackforla.github.io/311-data/#/map
  • [ ] confirm we have a basic GA dashboard
  • [ ] write a dev ticket to enable the GA using a valid ID (either an ID from above, or a newly generated ID)

Resources/Instructions

 <!-- Google Analytics -->
  <!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-166263401-1"></script>
    <script>
      const devHostname = window.location.hostname === 'localhost' || window.location.hostname === '0.0.0.0';
      window['ga-disable-UA-166263401-1'] = devHostname;
      window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-166263401-1');
    </script>
    <script src="https://www.googleoptimize.com/optimize.js?id=OPT-WHKV393"></script> -->

sanjumv avatar Sep 27 '23 03:09 sanjumv

Based on previously closed tickets, the team was intending to use a Hotjar integration for Google Analytics and Mixpanel. See list of relevant closed tickets here.

@annaseulgi @bberhane I'm finding that we have tickets for implementing hotjar into our map and content pages -- although I can ask @edwinjue if these are effectively being used. I will add this to the agenda for PMs for our weekly meeting.

ryanfchase avatar Nov 15 '23 18:11 ryanfchase

@ryanfchase Do we have an update on current analytics capabilities?

bberhane avatar Jun 03 '24 23:06 bberhane

@bberhane We actually have some boilerplate setup to use google analytics and hotjar. I don't think we'd need the GA data for our Usability Testing, but we'll still want it moving forward. I think the ticket still stands, but it should be refined based on some basic requirements that Bonnie suggests.

I say we add it to the following agenda so Bonnie can help us determine how to structure this ticket.

ryanfchase avatar Jun 04 '24 16:06 ryanfchase

@ryanfchase will add this to the PM meeting agenda for next week

bberhane avatar Aug 21 '24 01:08 bberhane