TNEW V7 New URLs broke goal funnel in GA

With the new TNEW event page URLs in V7 we had to change our ticket purchase funnel to Regular Expression. 

The Event Page, Cart Detail Page, Cart Payment Page, and Cart Receipt Page are picking up extra hits from URLs like /account/login?ReturnUrl= and /account/create?returnurl=.

Has anyone come up with a Regular Expression that eliminates the return URL issue?

  • Can you paste the regexes you are currently using? I've also configured funnels in GA; I'll be able to check a little later what patterns I'm using.

  • Here is what we currently have:

    Goal: \/cart\/receipt/

    TNEW Event Page: \/[0-9][0-9][0-9][0-9]\/[0-9][0-9][0-9][0-9]

    Cart Details: \/cart\/details

    Login: \/account\/login

    Cart Payment: \/cart\/payment

  • If you start each regex with a ^ symbol, you might be all set!

    Here's an example (and a really useful tool for learning/writing regex): https://regexr.com/4scg4

    ^ indicates that the match pattern starts at the beginning of the string. However, if the full string being matched against actually contains your domain name, you will need to extend the pattern to include it. I don't believe the string contains the domain name by default, but in our implementation, we wanted to use the same GA tag across TNEW and our Marketing site, so we have an advanced filter in GA that prefixes all request paths with their hostname.

    As a side note, you may also want to change your event page regex to be a bit simpler and future-proof like this:

    ^\/[0-9]+(\/[0-9]+)?

    (https://regexr.com/4scgm)

    It still won't catch URLs with slugs, but it avoids your current min/max restriction of 1000-9999, and allows for purchase pages that were accessed through the prod season title.

  • Thanks, for taking the time to look at this and suggesting some resources!