Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regex for Guest VS Registered User Funnel in Google Analytics

How should I setup a guest checkout conversion funnel?

I need to setup a guest vs registered user funnel to track conversions separately. Specifically, we need to look at goal completions (conversions), cart abandonment, bounce, exit, as we A/B different page views (changing UI on middle pages).

Problems:

  • 1) The regex does not seem to work for the guest funnel visualization. Google reports 0 sessions in the visualization funnel, although it shows that 0.8% of visits completed this goal.

  • 2) Ideally, I'd like to NOT tag each guest page with the query string parameter.

The typical flow goes: Cart > Login > Shipping > Delivery > Payment > Review > Complete

I begin at Shipping because that is where the fork occurs for a guest (where we add on the querystring parameter).

Guest Destination Goal

 Regular Expression: ^\/complete\?guest=.*$


 Step 1: /shipping?guest=1 (REQUIRED)
 Step 2: /delivery
 Step 3: /payment
 Step 4: /review
 Step 5: /complete?guest=1 (Destination)

Registered User Destination Goal

 Regular Expression: ^/complete$

 Step 1: /shipping (REQUIRED)
 Step 2: /delivery
 Step 3: /payment
 Step 4: /review
 Step 5: /complete (Destination)

The registered user goal regex is working thanks to Allen, but the guest goal is still not working as desired.

I have tried these regex:

 ^\/complete\?guest=.*$
 \/complete\?guest=.*$
 /complete\?guest=.*$
 /complete\?guest=1
 /complete/?guest=1

Google says, This Goal was completed in 0 sessions

Yet it shows a destination conversion rate of 0.8% for the goal. My understanding is that this happens because Google only evaluates the last URL, which is a match. However for the session conversions, the regex must apply to all pages in the funnel for the visualization to list the session number.

EDIT:

Here is the complete working example if anyone finds it helpful. The trick was that the steps also needed regex syntax and to take the final destination out of the steps.

Guest Destination Goal

 Regular Expression: /complete\?guest=1$

 Step 1: /shipping\?guest=1 (REQUIRED)
 Step 2: /delivery
 Step 3: /payment
 Step 4: /review

Registered User Destination Goal

 Regular Expression: ^/complete$

 Step 1: /shipping (REQUIRED)
 Step 2: /delivery
 Step 3: /payment
 Step 4: /review
like image 310
User970008 Avatar asked Feb 15 '17 18:02

User970008


1 Answers

If I understood correctly, you need a regex for guests, and another for registered users. If that's the case, maybe you could use:

Guests:

/complete\?guest=1$

Registered users:

^/complete$

If you want a single regex for both guests and registered users, maybe:

\/(complete|shipping)

Please, let me know if this helps.

like image 177
Ivan Chaer Avatar answered Dec 16 '22 11:12

Ivan Chaer