US-GHG-Center / veda-config-ghg

Veda config for GHG
https://ghg-demo.netlify.app
Other
3 stars 15 forks source link

Review GA results #202

Closed j08lue closed 8 months ago

j08lue commented 1 year ago

Some page titles apparently contain "VEDA UI", according to our Google Analytics dashboard.

@aboydnw can provide access to the GA (Looker Studio) dashboard

Acceptance criteria

aboydnw commented 1 year ago

I think it might have more to do with our GA configuration. Slesa mentioned that she added staging to the data stream. I will have to investigate how we can clean it up. When I create a table of all the page titles including VEDA in our GHG data stream, they are all localhost page URLs. All of the ghg.center URLs look clean. I will keep investigating. image

aboydnw commented 1 year ago

Okay I am still investigating this. But for now I just filtered out these values from the dashboard so this problem isn't as immediate. However, I found something weird when looking through the data. I see records with the same page URL but different titles. I am not sure if this is something to do with google analytics or if it's something in the code.

For example, here are all the different entries with url of the analysis page. image

And then when I look at all the entries I see lots of duplicates. And the number of visits to the analysis page url with the simple VEDA Dashboard title matches what I would expect from our home page (relative to all the other pages) image

Any ideas on why this might be? Any way we could verify there's not something weird going on in the dashboard? I did a quick google for any google analytics related issues and nothing jumped out at me

hanbyul-here commented 12 months ago

@aboydnw So if I am reading the result right, the problem is that the document's title and the URL don't match. I have a hunch that this weird behavior is because of our SPA limitation. Since Javascript changes the document's title, It takes time for the page to change its title. If GA kicks in before the document changes the title, it will collect the universal title (VEDA Dashboard), not the page-specific title.

aboydnw commented 12 months ago

Hm could be @hanbyul-here Would that also explain why we see specific page titles like Data Catalog or Air Quality and COVID-19?