Tracking a custom value in URL

Hopefully this is posted in the right place. I have a value in a URL I’d like to track. I’ve read some documentation and im not even sure this is possible.

However, when a user searches my website I have a value like so:

“&search_location_address[text]=Woodbridge%2C VA%2C USA&” in the url.

Is there a way to track this City/State search within matomo?

Hi,

You can track arbitrary data in custom dimensions:

https://matomo.org/docs/custom-dimensions/

and write some JavaScript to extract the data from the URL parameter

Thanks Lukas,

I don’t know a lick of JS so it looks like I’ll be doing quite a bit of reading. If I’m able to find a solution I’ll post it here if anyone else runs across this need.