vitessio / website

vitess.io website and other project management related content
https://vitess.io
Apache License 2.0
53 stars 203 forks source link

Improving Website Analytics #1289

Closed harshit-gangal closed 7 months ago

harshit-gangal commented 1 year ago

Current Analytics on the Vitess Website seems very minimalistic. It gives us good insights about the top pages and demographics. But, it can be improved.

It is missing information about the search. About what users are searching for and what they landed on, how much time did they spend on those pages to understand if they landed on the right page or not?

About the flow of pages, users go through.

This additional information will help us to understand if we should restructure our docs to make information more reachable to the users.


(Edit) Link to the service desk ticket: CNCFSD-1539.

harshit-gangal commented 1 year ago

Raised the request on cncf service desk.

chalin commented 1 year ago

Hi @harshit-gangal. Before deep diving, I have a question to ask so that I can better understand your request.

Current Analytics on the Vitess Website seems very minimalistic

Just to be clear: are you referring to Universal Analytics (UA) or Google Analytics 4 (GA4)?

/cc @nate-double-u

harshit-gangal commented 1 year ago

Hi @chalin To my knowledge we use GA4

deepthi commented 1 year ago

We've been on GA4 since https://github.com/vitessio/website/issues/1098 was fixed.

chalin commented 1 year ago

Right, ok, I'm glad that we're on the same page, and all talking about GA4.

Current Analytics on the Vitess Website seems very minimalistic. ... It is missing information about the search. ...

When I created the GA4 account, I enabled "Enhanced measurement", which includes events for site search and file downloads, so in that sense it is possible that nothing is missing. Here's an example for file downloads:

image

It may be more a question of report generation. Feel free to explore the Reports and Explore sections of the GA4 console for Vitess. Let us know if that suits your needs.

harshit-gangal commented 1 year ago

@chalin I tried the Explore but I was not able to build a report with the search term as a dimension and page views as metric.

chalin commented 1 year ago

In terms of getting analytics for search from within the site, since Lunr is used, we may indeed need a custom strategy. @thisisobate: might you know how to best hook up Google Analytics to Lunr search? I haven't found anything in yet. Of the top of my head, we could add a search query argument (?search=<search-term-used>) to each link in the results pane. WDYT?

In the meantime, have you looked at Search Console data?

chalin commented 1 year ago

@thisisobate - any updates? At a minimum we should discuss this at our next techdocs meeting. /cc @nate-double-u

chalin commented 1 year ago

/assign @thisisobate /assign

chalin commented 7 months ago

Here's a status summary regarding the requests in the opening comment.

It is missing information about the search. About what users are searching for

(1) Regarding search terms, you can now view the Event + search term report, here's a sample for the past 30 days (which you know about already, but for sake of completeness I'm listing it here):

image

The report linked to above addresses the question "what are users searching for".

and what they landed on, ...

(2) GA offers a standard Landing page.

(3) To the best of my knowledge, correlating searches with selected pages would require more analytics customization (website JS code) as well as exporting to Big Query for the purpose of analyzing results. All of this would be considerable effort. I'm not sure it is worth the incremental gain as compared to what GA offers.

how much time did they spend on those pages to understand if they landed on the right page or not?

(4) The Landing page report includes Average Engagement Time.

About the flow of pages, users go through.

(5) The Explorations section allows you to create "Path exploration" custom forms.

chalin commented 7 months ago

@harshit-gangal - you should have received a notice that the associated CNCF tick has been marked resolved. For a full explanation, see https://cncfservicedesk.atlassian.net/browse/CNCFSD-1539?focusedCommentId=27194. I've unassigned myself from this issue. Feel free to keep it open or close it as you see fit.

harshit-gangal commented 7 months ago

Closing as this is best can be done with "GA". We can open a separate if issue if we want to go deeper as you suggested.