Quantcast
Channel: SeoTools for Excel - Community - Latest topics
Viewing all articles
Browse latest Browse all 1126

Landingpage Path - Regex - GA4

$
0
0

Hi there,

I am trying display the number of sessions (GA4) that
-have the traffic source "organic search" and
-where the landingpage path matches a regular Expression

With GA3 it worked well. In GA4 it works too with a simple regex, but not for a longer regex.

I am using this regex to match Product URLs of an ecommerce Website:

((.)-[bl0-9][0-9]{5,7}|(. )-[a-z]{2,3}[0-9]{3,4}.*)

It works well when I test it to match product URLs (e.g., "/terrassendiele-douglasie-711526"), but when I try to use it in a formula, it returns the total number of all sessions, rather than just the ones that match the pattern. The formula:

=@Dump(Connector("GoogleAnalytics.BuildReport";"XXXXX";"sessions";;;"sessionDefaultChannelGroup==organic search;landingPagePlusQueryString=~((.)-[bl0-9][0-9]{5,7}|(.)-[a-z]{2,3}[0-9]{3,4}.*)";;K15;K16;TRUE;FALSE;1000))

For your reference, a different regex pattern works perfectly with the same formula. When I use this more simple Regex to filter Magazine-Articles, it works well (with the same formula):
(.ratgeber.|.lexikon.)

Does someone know how I could fix it?

Since the regex is not displayed correctly in the forum, here is the message in Google Docs: https://docs.google.com/document/d/1SOZPg3_KbbjdGRo5gzTrTtHXnB4nCbc_6sQmJW3Gbak/edit?usp=sharing

Thank you in advance!
Fabian

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>