department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

DRAFT Analytics Implementation for Sitewide Facilities - Regional Offices #76780

Open davidmpickett opened 6 months ago

davidmpickett commented 6 months ago

Google Analytics Implementation Request

Please provide the following details for this request

Please leave the following blank

Acceptance criteria

Additional information

Please refer to Platform Collaboration Cycle or the Analytics Request Touchpoint on Platform website for more information about the Collaboration Cycle.

eselkin commented 1 month ago

@davidmpickett With the complex naming of VBAs is there a way to funnel them together? I mean between the two of these, I see va-regional-benefit-office in both, but will that change? /honolulu-va-regional-benefit-office-at-spark-m-matsunaga-department-of-veterans-affairs-medical-center/ and /philadelphia-va-regional-benefit-office/

eselkin commented 1 month ago

Just some notes:

GA4 accordion expansion { v: "2", tid: "G-1G19L53NYB", gtm: "45je4790v9172290397z872214120za200zb72214120", _p: "1721165006809", gcd: "13l3l3l3l1", npa: "0", dma: "0", tag_exp: "0", cid: "1328485551.1710975112", ul: "en-us", sr: "1728x1117", uaa: "arm", uab: "64", uafvl: "Not/A)Brand;8.0.0.0|Chromium;126.0.6478.127|Google Chrome;126.0.6478.127", uamb: "0", uam: "", uap: "macOS", uapv: "14.5.0", uaw: "0", are: "1", frm: "0", pscdl: "", _s: "2", dl: "https://web-codylbelkq0gdivw6x7tykigmeqloewe.demo.cms.va.gov/philadelphia-va-regional-benefit-office/", dr: "", sid: "1721164137", sct: "39", seg: "1", dt: "Philadelphia VA Regional Benefit Office | Veterans Affairs", en: "accordion", ep.gtm_container_id: "GTM-WFJWBD", ep.gtm_env_name: "Development Environment", ep.dle_name: "int-accordion-expand", ep.component: "component-library", epn.component_library_event: "1", ep.event_action: "expand", ep.link_text: "accordion-section-label", ep.heading_1: "Prepare for your visit 1", ep.heading_2: "(not set)", epn.level_current: "3", _et: "2806", tfd: "16910", _z: "fetch" }

I don't see GA4 events from va-link like for MST on Philadelphia (from the dev data) or from va-telephone components. But I do see the GA4 events from mailto links.

I see scroll events on VBA pages for GA4 { v: "2", tid: "G-CSLL4ZEK4L", gtm: "45je4790v9131934939za200", _p: "1721166096418", gcd: "13l3l3l3l1", npa: "0", dma: "0", tag_exp: "0", cid: "733855420.1717124535", ul: "en-us", sr: "1728x1117", uaa: "arm", uab: "64", uafvl: "Not/A)Brand;8.0.0.0|Chromium;126.0.6478.127|Google Chrome;126.0.6478.127", uamb: "0", uam: "", uap: "macOS", uapv: "14.5.0", uaw: "0", are: "1", frm: "0", pscdl: "", _eu: "AEA", _s: "2", dl: "http://localhost:3002/philadelphia-va-regional-benefit-office/", dt: "Philadelphia VA Regional Benefit Office | Veterans Affairs", sid: "1721165360", sct: "86", seg: "1", en: "scroll", ep.agency: "VA", ep.subagency: "LOCALHOST", ep.site_topic: "unspecified:localhost", ep.site_platform: "unspecified:localhost", ep.script_source: "https://dap.digitalgov.gov/universal-federated-analytics-min.js", ep.version: "20240712 v8.2 - ga4", ep.protocol: "http:", ep.using_parallel_tracker: "no", epn.percent_scrolled: "90", tfd: "5642", _z: "fetch" }
davidmpickett commented 1 month ago

@davidmpickett With the complex naming of VBAs is there a way to funnel them together? I mean between the two of these, I see va-regional-benefit-office in both, but will that change? /honolulu-va-regional-benefit-office-at-spark-m-matsunaga-department-of-veterans-affairs-medical-center/ and /philadelphia-va-regional-benefit-office/

Yes. The current plan for Regional Office URLs is reflected in our naming schema and all of them would have va-regional-benefit-office in them in both the current and future state. This schema is reflective of proposed future changes that would shorten: /honolulu-va-regional-benefit-office-at-spark-m-matsunaga-department-of-veterans-affairs-medical-center/ to /honolulu-va-regional-benefit-office/

Additionally, none of the other types of VBA facilities have this specific slug, so this pattern will be specific to ROs. Satellite offices come close with va-regional-benefit-satellite-office so that pattern could also be specified if we want to catch both.

The other VBA facilities types were out of scope for MVP, so we haven't technically haven't made decisions about them

jilladams commented 1 month ago

@johnny-jesensky-adhoc could you advise if this ticket will sit with your team, or if you need more information from us in order to act on it?

jilladams commented 1 month ago

Pinged analytics folks about whether this is ok or needs work: https://dsva.slack.com/archives/C1Q4294JJ/p1723140748378569

johnny-jesensky-adhoc commented 1 month ago

@jilladams -- we'll plan to discuss at our next refinement, but a quick follow-up question for now:

Are there specifics on what specifically y'all want tracked within the pages, outside of what we can automatically grab using the design systems components?

Was looking at this page linked in the description, https://www.va.gov/portland-va-regional-benefit-office

FYI @Blivaditis, @jestutt

jilladams commented 1 month ago

That is a very good question. I think we'd generally love to know the funnel -- incoming, outgoing, clicks on links/ CTAs / accordions, scroll depth if that's possible. (I'm not an analytics person - much of that may be covered already by components.)

@mmiddaugh @Agile6MSkinner @aklausmeier anything you would add?

Agile6MSkinner commented 1 month ago

@jilladams I am not spun up enough on analytics yet to opine.

jestutt commented 3 weeks ago

@jilladams Sounds like you want to track everything and that's not always a viable option. Instead, maybe think about the questions you want or need to answer.

Once you have the list, try categorizing them into KPI, UX or health information. Or apply a hierarchy. We can help guide you but you know your content best and likely know what the most common questions you get regarding it are.

Agile6MSkinner commented 1 week ago

@jestutt If we add it to the Content KPI Domo Dashboard, will it inherit the same attributes? We don't need to reinvent the wheel here; it should mirror existing data dashboards for existing Vet Centers and VAMCs.