Skip to main content
Solved

:Multiple URL's but with same selectors

  • 5 September 2019
  • 1 reply
  • 104 views

Hey Guys,





This use case came up the other day and has me stuck. Has anyone else seen this issue and come up with a workaround?.... Any input would be much appreciated.





Use case: I have a URL





https://abc.com/xyz3/manage/alerts/edit/1234(dynamic number)





https://abc.com/xyz3/manage/alerts/edit/new





I have an Edit Button on both the pages, with same ID(same selector)





Can I track Edit button on https://abc.com/xyz3/manage/alerts/edit/1234 separately from the edit button on https://abc.com/xyz3/manage/alerts/edit/new





Query: Since I will use scope as https://abc.com/xyz3/manage/alerts/edit/*





And selector as same ID, will both the features be called when I use any one?



1 reply

Userlevel 6
Badge +2
Using Regex (Regular Expressions) is the right, most robust solution, but we do not currently support them within URL Rules based on my tests.



However, one can accomplish this by setting up your feature URLs similar to the following...







... which results in the following User Activity...







This should at least make this possible until we do support Regex in URL Rules.



@ciarapeter @mickey






Reply