Solved

Is it possible to capture as a property the final part of the path?

  • 8 February 2023
  • 4 replies
  • 57 views

Userlevel 1
Badge +1

I defined a click event, on my page there are 5 reports, each uses the same button and an href to take the user to that report. Each href follows the same path other outside of the last part, for example:

  1. www.test.com/user/1/report/profile
  2. www.test.com/user/1/report/history

Is it possible to just capture profile or history in the example above as a property?

icon

Best answer by Christy H 8 February 2023, 17:51

View original

4 replies

Userlevel 4
Badge +3

Hey @kylec , 

You should be able to extract this value using regex and by making a defined property.

You can read more about that in our documentation here.

There is also a similar community post which has some great tips as well that you may want to check out! 

Userlevel 1
Badge +1

Hey @Christy H , thanks for the resources. I used the property Href, but it actually wasn’t capturing anything. Any idea what I might be doing wrong?

 

 

Userlevel 1
Badge

Hey @kylec , 

I would love to look into this for you. Would you mind sharing your App ID so that I can investigate further?

All the best,

Userlevel 1
Badge +1

@ellysastanton I will dm you app id! Thank you

Reply