I am trying to track certain metrics in google analytics, but I only want to grab the params, remove sensitive information and send them off as a comma separated string. Such that:
this=me&that=you
would be fired off to ga as:
this,that
I have tried using Angular's native URL parser but I think I may need something more complex and I am not versed enough in REGEX to yank these out simply. Any help is greatly appreciated.
.split('&')and.split('=')to get the key-value pairs and then the parameters themselves.location.searchto get the parameters at the end of a url