We are implelenting adobe target in SPA application using method adobe.target.triggerView (viewName, options). In order to configure target call on every view that changes in SPA, we are triggering triggerView function so that respective experience will be rendered on respective view.
No the question here is, Should viewname be a unique across whole website in SPA?
For ex.
i have 5 viewes in application, all rendered with different urls but have same root url.
https://www.testsample.com/section1/view1
https://www.testsample.com/section1/view2
https://www.testsample.com/section1/view3
https://www.testsample.com/section2/view1
https://www.testsample.com/section2/view2
Now 2 sections have similar url for 2 views view1 & view2, but contents are different and we would like to add different experiences on those views, currently we are passing only view names in adobe.target.triggerView.
Will this work or should be need to pass unique viewnames like below
section1-view1
section1-view2
section1-view3
section2-view1
section2-view2
Thanks