-3

I am trying to track performance of a URL parameter using Google Data Studio. The URL looks like this:

https://example.com/?gclid=something&extension=me-trying-stuff

I want to get me-trying-stuff at the end of &extension.

logi-kal
  • 7,107
  • 6
  • 31
  • 43
  • Could you elaborate by providing a publicly editable Google Data Studio Report (additionally, a Google Sheet if it's the data set) of the scenario (using sample data that shows 1) Input values (~10 rows) 2) Expected output 3) An attempt at solving the issue)? It would help users visualise the issue and test out suggestions on a specific use case with objective right / wrong answers. Without a [Minimal Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) it would be difficult to pinpoint a suggestion and the issue, e.g. Data Set, Data Source, Report, Fields, Chart – Nimantha Feb 14 '22 at 04:29

1 Answers1

-1

&extension=([^\s&]*)

This regex will find &extension= in your url, and capture characters up to the next & (or whitespace).

Try it here!

Nick Reed
  • 4,989
  • 4
  • 17
  • 37