Filtering on patterns in URLs | Community
Skip to main content
June 9, 2020
Solved

Filtering on patterns in URLs

  • June 9, 2020
  • 1 reply
  • 1522 views

Hi,

 

Slightly complex problem. I'm looking to detect changes in language from a referring URL to a current URL. For example, if I have /fr/ in my referring, I'd like to identify the number of times I have /en/ in the current URL.

 

Any advice on how to do this would be appreciated!

 

Thank you,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Andrey_Osadchuk

If the URL is captured in a custom dimension, build a segment as follows:

URL contains /fr/

then next page view

URL contain /en/

 

1 reply

Andrey_Osadchuk
Andrey_OsadchukAccepted solution
Level 10
June 9, 2020

If the URL is captured in a custom dimension, build a segment as follows:

URL contains /fr/

then next page view

URL contain /en/