Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics Visitors Flow: grouping URLs?

I'm attempting to do some careful analysis of the way my website's visitors move through two particular multi-page actions (e.g. event registration) in order to determine where and why some visitors don't complete the actions. I'm trying to use the Google Analytics "Visitors Flow" tool to examine the data, especially to find out where the "did not complete" visitors went next.

The difficulty I've run into is how the developers put together the URL structure in our MVC framework. Roughly speaking, the URLs look like this:

/contacts/432/edit                 /* create new person profile, [0-9]+ format for new person ID */
/event_orders/763/edit             /* create new event reg, [0-9]+ format for new event registration */
/event_orders/763?success=true     /* action completed */

Because of how the URLs are constructed, it's currently not possible to use the GA Visitor Flow analysis to view how site users move through the action sequence.

What I'm hoping for: I want to be able to define URL groupings by using regular expressions.

I know it's possible to use regular expressions when filtering page views, but I haven't found anything along those lines in the Visitors Flow section. If anything it looks as though I would need to define site-wide URL groupings in order to always treat /contacts/[0-9]+/edit as the same URL, thereby grouping the "create new event registration" page views into one chunk when viewing the Visitors Flow.

Is it possible to do this?

like image 220
nmjk Avatar asked Oct 03 '12 22:10

nmjk


People also ask

How do I view content grouping in Google Analytics?

The All Pages report is a good place to start if you want to see which pages are popular on your website. Step 1: Navigate to Behavior >> Site Content >> All Pages. Step 2: Select your Content Grouping. Now you have a more aggregated view on your content performance.

Can Google Analytics track visitors?

With its robust web analytics and reporting tools, Google Analytics can help you make the most out of visitors and potentially turn them into customers. In addition to tracking the number of visitors, Google Analytics provides key insights into how your website is performing and what you can do to meet your goals.


2 Answers

Unfortunately there's no clean way to do this without creating a new profile along with some custom profile filters.

To do this simply jump into the Admin interface, create a new profile (if you don't want to muddy your existing data - you can create oodles of these anyway) and create a custom advanced filter with the following options:

Type: Search & Replace

Field: Request URI

Search String: ^/(contacts|event_orders)(/\d*)(.*)

Replace String: /$A1$A3

Here's how that looks in the GA interface:

enter image description here

like image 126
Robert Kingston Avatar answered Nov 14 '22 07:11

Robert Kingston


In the original question, I stated what I was hoping for: "I want to be able to define URL groupings by using regular expressions."

It turns out that Google Analytics' Visitor Flow allows exactly this! Here's how.

  1. Load up Visitors Flow, and apply any other filters and segmentations you want.

  2. Navigate through the Visitors Flow interface to find one example of the pages that you want to group. In the case of my original question, one example was /contacts/432/edit

  3. Left click on that node and select "Explore traffic through here". That will convert the interface so that it shows all the entrance paths to and exit paths from that node, regardless of where that node occurred in the sequence of each visitor's interaction with the site.

  4. Click on the "gear" icon above the node in the new display. That will bring up a new dialogue box that allows a number of "Match" options: "contains", "begins with", "ends with", "equals", and "matches regexp"!

  5. I haven't plumbed the depths of the regexp flexibility here, but for one of the groupings that I was looking for, I entered /contacts/*/edit in the second field

  6. The third field is optional, but allows you to use a more friendly name for the node.

  7. Click "Apply". Now all the matching URLs will be grouped!

  8. (Bonus) In order to see the specific URLs that have been grouped and some overview statistics of each of those URLs, left click on the node and click "Group Details".

Happy regex'ing!

like image 5
nmjk Avatar answered Nov 14 '22 08:11

nmjk