Analytics
2K members online now
2K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
 
Guide Me
star_border
Reply

GA Regex to filter unsubscribes from Goal

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am looking for a GA regex to match form submission on a variety of landing pages but exclude unsubscribes.  

 

The form completion URL contains the string  html?aliId=

 

The unsubscribes contain UnsubscribeConfirm.html?aliId=

 

how would I form this regex?

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Jonah S
July

GA Regex to filter unsubscribes from Goal

Follower ✭ ✭ ☆
# 5
Follower ✭ ✭ ☆

Hi Jonah,

it is not possibile to use the exclusion regex metacharacter in GA, so you cannot use the "exclude" function in GA regex.
How is the full form completion URL? It may be possible to create a regex with that information.

Best

Elena

 
 

View solution in original post

GA Regex to filter unsubscribes from Goal

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Isn't it just "^UnsubscribeConfirm.html?aliId=" in exclude mode?

GA Regex to filter unsubscribes from Goal

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

but I need to create a goal to capture the html?alild

GA Regex to filter unsubscribes from Goal

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

So basically goals doesn't allow exclusions and GA regex doesn't support negative lookaheads etc. so I'd suggest

1. To trigger an event once user reaches any form completion url, then

2. Create a goal based on event

Marked as Best Answer.
Solution
Accepted by topic author Jonah S
July

GA Regex to filter unsubscribes from Goal

Follower ✭ ✭ ☆
# 5
Follower ✭ ✭ ☆

Hi Jonah,

it is not possibile to use the exclusion regex metacharacter in GA, so you cannot use the "exclude" function in GA regex.
How is the full form completion URL? It may be possible to create a regex with that information.

Best

Elena

 
 

GA Regex to filter unsubscribes from Goal

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Thanks Elena.  It looks like we will need to add an event since the completion URL could actually be one of dozens and they are not standardized.