Using regular expressions in GA4 || RegEx in GA4

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 มิ.ย. 2024
  • Regular expressions in Google Analytics 4 (RegEx) work differently than in the previous GA version (Universal Analytics).
    In this video, I will show you the main difference and how to overcome the limitation.
    Also, if anyone from Google reads this (I doubt this will happen), please add more support for RegEx in GA4 (e.g. in the search field of standard reports).
    === LINKS ===
    Subscribe to our TH-cam channel / @analyticsmania
    ⭐⭐ Google Analytics 4 course ⭐⭐
    www.analyticsmania.com/course...
    📕 Free e-book: Getting Started with Google Analytics 4
    www.analyticsmania.com/p/gett...
    📕 Free e-book: 8-step migration to Google Analytics 4
    www.analyticsmania.com/p/goog...
    === CONNECT WITH JULIUS & ANALYTICS MANIA ===
    ✭ Facebook / analyticsmania
    ✭ Twitter / fedorovicius
    ✭ Linkedin / fedorovicius
    Subscribe to our TH-cam channel / @analyticsmania
    #googleanalytics #googleanalytics4
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 24

  • @yutoando357
    @yutoando357 ปีที่แล้ว +1

    This is exactly what I’ve long needed. Thank you!

  • @adascott1008
    @adascott1008 ปีที่แล้ว

    Hi Julius, thanks for the step-by-step guide. Will always come and check your videos when I have GA4-related questions!

  • @samgooch935
    @samgooch935 ปีที่แล้ว

    Thank you Julius, this one had me scratching my head for quite some time, to the point where I was avoiding regex in GA4! Another great video!

  • @dylanrodgers3150
    @dylanrodgers3150 ปีที่แล้ว

    I wish I could give this two thumbs up. I've been beating my head against a wall trying to use the old way of RegEx for multiple partial matches and apparently just didn't search the right terms. THANK YOU!

  • @karenbensdon4643
    @karenbensdon4643 ปีที่แล้ว +2

    Great topic!!

  • @julienasr7455
    @julienasr7455 ปีที่แล้ว

    soooooo helpful!!! I'm filled with joy.

  • @Vale-it4bf
    @Vale-it4bf ปีที่แล้ว

    You saved me! Thank you!

  • @drishanvig
    @drishanvig ปีที่แล้ว

    I personally liked all your videos . Planning to buy your GTM course in next 2 3 days

  • @victoriaspall525
    @victoriaspall525 ปีที่แล้ว +1

    Hi Julius - another great video! I've been having real issues with RegEx in the exploration reports. There doesn't seem to be am Exclude match RegEx option available to filter out data. Also, I've been having a mare with Custom Dimensions showing as (not set) in these reports. Any idea where I am going wrong?

  • @denis14594
    @denis14594 3 หลายเดือนก่อน

    When building the segments is matches regex case sensitive?

  • @LegalServicesCorp
    @LegalServicesCorp 10 หลายเดือนก่อน

    How do I create a report in GA4 that displays traffic for a specific set of pages using regex? For instance, we have a section of our website titled "Model Practices & Innovations" that contains approximately 20 pages. I need a report that displays traffic only for those 20 pages. BTW, I was able to create this report using regex in GA UA.

  • @abhishekpuvvada5847
    @abhishekpuvvada5847 6 หลายเดือนก่อน

    Can we match the following UTM campaign value: 1-day-only-sale-reminder-11-29-23 using the regex match -11-(?=\d{1,2}-\d{2}) in exploration report? I tried this and doesn't seem to yield the result. I also tried using just the digits match, both \d and [0-9] variations but even that doesn't seem to work in exploration reports? Am I missing something?

  • @agung_laksana
    @agung_laksana ปีที่แล้ว

    Hi, Julius. Thanks for your helpful videos. If you don't mind, please consider making a video about lifetime value chart Inside GA4? I can't find any good quality video explanation about it on TH-cam. I believe it is really important chart so I have to get the correct interpretation

    • @AnalyticsMania
      @AnalyticsMania  ปีที่แล้ว +1

      GA is not a good tool for that, in my opinion

    • @agung_laksana
      @agung_laksana ปีที่แล้ว

      @@AnalyticsMania wow I didn't know that. Maybe a video about why GA4 is not good for lifetime value 😅

  • @melissatumino9291
    @melissatumino9291 ปีที่แล้ว

    Great video! Any help on match RegEx in google analytics 4? I can't find a way to filter out my posts into groups by page path and create reports like I would in UA. They give you a drop-down in the filter of posts you can click, but not all posts appear to click even when searching. I have reached out to Google support and two months in and no resolve and they basically blew me off. ☹

    • @cindythomason
      @cindythomason 11 หลายเดือนก่อน

      Same! I've spent so much time trying to figure this out. :(

  • @anandmadhavan1894
    @anandmadhavan1894 11 หลายเดือนก่อน

    The "OR" or | doesn't seem to work at all though. I am using a part of my url 474233|474482 and running page location and it shows 0 results within a segment or filter - it's bizarre.

    • @AnalyticsMania
      @AnalyticsMania  11 หลายเดือนก่อน

      are 474233 and 474482 exact matches?
      Did you try .*(474233|474482).* ?

  • @RizkyHidayat
    @RizkyHidayat ปีที่แล้ว

    how check fraud traffic?

  • @PomaranczaPoczestujSie
    @PomaranczaPoczestujSie ปีที่แล้ว +2

    Anyone is creating RegEx using chatgpt?

    • @anondontwant
      @anondontwant ปีที่แล้ว

      all the time, v helpful

  • @bradleymyers7413
    @bradleymyers7413 11 หลายเดือนก่อน

    Thanks for the video but GA4 sucks. The fact that you can't use Regular Expressions on everything is ridiculous. I hope google plans on adding it everywhere. Especially on report filters. Unreal that it doesn't accept regex and to make it worse they don't have an option to do OR instead of just AND. So you can't put a string in the filter and include all then another matching condition. We can do AND and add another but then you can't use the same dimension.