hackforla / 311-data

Empowering Neighborhood Associations to improve the analysis of their initiatives using 311 data
https://hackforla.github.io/311-data/
GNU General Public License v3.0
62 stars 64 forks source link

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

Open sanjumv opened 1 year ago

sanjumv commented 1 year ago

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

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> -->
ryanfchase commented 1 year ago

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.

bberhane commented 5 months ago

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

ryanfchase commented 5 months ago

@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.

bberhane commented 3 months ago

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