Grouping Identity Pages in Google Analytics

I have been instructed to generate more useful data from our Google Analytics account.

We have URL paths that include the identifier of this object, such as a product, workspace, or device. Thus, the routes may look like

/ide/products/8a8985cf-8a74-ee7a-a9a3-d1335a4a7ad6/workspaces/987dd13e-57a3-353b-2b42-db58c479d0ca/draft/devices/40000c2a69109dd8

/ide/products/531743df-3d77-ec6b-4014-d33925639743/workspaces/e0eb62fc-e7d2-56ec-56cf-79ae53714de3/draft

/ide/products/65bc6914-4ddd-1718-0d47-e91b0ff1dff1/workspaces/f7b526ad-7e5c-7f11-f4ad-bb53f8e583d7/draft

/ide/products/65bc6914-4ddd-1718-0d47-e91b0ff1dff1/workspaces/f7b526ad-7e5c-7f11-f4ad-bb53f8e583d7/deployments

Following the pattern /ide/products/{{product_id}}/workspaces/{{workspace_id}}/{{page}} , by the way.

In Behavior, I try to show how users move from /ide to /ide/products to ide/products/{{any_product_id}}/workspaces to ide/products/{{any_product_id}}/workspaces/{{any_workspaces_id}}/draft , but it’s unclear how to create groups that ignore arbitrary identifiers. I tried Content Consolidation, but they seem to be higher level than what I'm looking for in that I have to “select” one as the top-level filter in the sequence diagram (as opposed to “automatic grouping”).

How can I demonstrate a user stream that is identical regardless of the actual identifier of the object "connected to" this page? How to see charts in Google Analytics related to

/ide/products/65bc6914-4ddd-1718-0d47-e91b0ff1dff1/workspaces/f7b526ad-7e5c-7f11-f4ad-bb53f8e583d7/draft

/ide/products/531743df-3d77-ec6b-4014-d33925639743/workspaces/e0eb62fc-e7d2-56ec-56cf-79ae53714de3/draft

how is the same route?

EDIT: Another example: I look at the behavior of> Page Timing, with the primary dimension set to "Page". I see /ide/products/{{id_1}}/workspaces/{{workspace_1}}/draft and /ide/products/{{id_2}}/workspaces/{{workspace_2}}/draft as separate objects, when ideally they will be considered as a single object, since the application functions on this page (which are universal regardless of this identifier) ​​affect the page loading time.

+5
source share
1 answer

You can do this completely using event tracking. Not sure how good your Javascript knowledge is, but here is what I did for the projects I was working on.

1. Implement event tracking

Use Javascript to dispatch an event based on the page, user actions, or any other event. Read a simple guide from Google https://developers.google.com/analytics/devguides/collection/gtagjs/events . In your case, you will need Javascript code on four pages and send the event according to the page loading. They look something like this:

IDE Page

 gtag('event', 'ide', { 'event_category': 'page_load', 'event_label': 'Google' }); 

Product Page

 gtag('event', 'products', { 'event_category': 'page_load', 'event_label': 'Google' }); 

Wordspaces Page

 gtag('event', 'products', { 'event_category': 'page_load', 'event_label': 'Google' }); 

Workspaces Page

 gtag('event', 'workspaces', { 'event_category': 'page_load', 'event_label': 'Google' }); 

2. View the flow of events

After implementing and ensuring that Google accepts events. Open Google Analytics dashboard > Behaviors > Events > Event Flow

Enjoy the result!

+2
source

Source: https://habr.com/ru/post/1274800/


All Articles