10 Dec 2018
08:03 AM
- last edited on
30 Sep 2022
01:16 PM
by
MaciejNeumann
Can we add/combine two different css selections to create one user tag ?
I want to capture two different texts from two different areas of the html for example:
text 1: Joe
text 2: Joe's emp no ( 242) ( mentioned on same page but elsewhere)
Desired result: Joe 242
Is it possible ? if yes how can I combine the css selections to achieve the same.
I have been trying : css selection 1(body > div.dJi-f.ds-i > div:nth-child(1) > div > div:nth-child(3) > div > div.dil-e > a > div.dil-f) + css selection 2
Regards
Rohit Sharma
Solved! Go to Solution.
I think you will have create two rules (one per each selector). But you will result 2 tags. In this way the best option is to save desired value to cookie or global js variable if you have such option.
Thanks for the input Sebastian 🙂
Additionally if you have the option to alter the code, I'd suggest to use the Dynatrace dtrum API for for tagging the user.
Thanks Julius, we are looking into that possibility 🙂