Analytics
4.3K members online now
4.3K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Regex Incorrectly Satisfies Two Funnel Conversion Goals in Google Analytics

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭
 

I am trying to build some Conversion Funnel Goals for our website, except that successful Conversion of Funnel 2) also counts as a Conversion for Funnel 1).

I have set the Conversion Goals as URL destinations. I tested the REGEXP in Rubular (https://snag.gy/ZFt6l5.jpg) to differentiate between the lead form on the home page vs the lead form on /landing-pages/.

1) Home --> Lead Form --> Lead Form Completion (destination URL)

Actual URLs are:

https://example.com/ -->

https://example.com/a-3-lightbox.html -->

https://example.com/a-form_confirmation.html?name=example&email=example@gmail.com

The REGEXP I have used is:

\/ -> /[a-z]-\d-lightbox\.html -> \/[a-z]-form_confirmation\.html?.*

~~~~~~

2) Home --> Landing Pages --> Landing Page Lead Form --> Landing Page Lead Form Completion

Actual URLS are:

https://example.com/ -->

https://example.com/landing-pages/a-3-lightbox.html -->

https://example.com/landing-pages/a-form_confirmation.html?name=example&email=example@gmail.com

The REGEXP is:

\/ -> \/landing-pages\/ -> \/landing-pages\/[a-z]-\d-lightbox\.html -> \/landing-pages\/[a-z]-form_confirmation\.html?.*

Now I'm guessing this occurs because [a-z]-form_confirmation\.html?.* satisfies the last portion of the URL in both.

Now I don't think I can use equals to when setting the destination URL as we are using Unbounce landing pages to split test, which will cause the last portion of the URL to change depending on the variant (e.g. a, b, c, d).

 

Would anyone be able to suggest something?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Ivan L
December 2016

Regex Incorrectly Satisfies Two Funnel Conversion Goals in Google Analytics

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆

Ypu can usa a ^ sign at the beginning of each regex.

It will differentiate tha paths.

And you don't need to put a backslash before a slash.

 

Go to Behavior > Site content > All Pages report and test below regex using search box. You will see a different results.

^/landing-pages/[a-z]-form_confirmation\.html?.*

^/[a-z]-form_confirmation\.html?.*

 

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Ivan L
December 2016

Regex Incorrectly Satisfies Two Funnel Conversion Goals in Google Analytics

Participant ✭ ✭ ☆
# 2
Participant ✭ ✭ ☆

Ypu can usa a ^ sign at the beginning of each regex.

It will differentiate tha paths.

And you don't need to put a backslash before a slash.

 

Go to Behavior > Site content > All Pages report and test below regex using search box. You will see a different results.

^/landing-pages/[a-z]-form_confirmation\.html?.*

^/[a-z]-form_confirmation\.html?.*

 

Regex Incorrectly Satisfies Two Funnel Conversion Goals in Google Analytics

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks so much Tomasz!