# Extracting context root from a URL to tag it

**URL:** <https://community.dynatrace.com/t/extracting-context-root-from-a-url-to-tag-it/34247>\
**Category:** Open Q&A\
**Tags:** tagging, request-attributes, dynatrace-api\
**Created:** [February 23, 2022, 1:01pm UTC](https://community.dynatrace.com/t/extracting-context-root-from-a-url-to-tag-it/34247 "2022-02-23T13:01:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![axel\_ayala](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@axel\_ayala](https://community.dynatrace.com/u/axel_ayala)\
**Post date:** [March 7, 2022, 4:41pm UTC](https://community.dynatrace.com/t/extracting-context-root-from-a-url-to-tag-it/34247/2 "2022-03-07T16:41:12Z")

</div>

If I understand correctly, you can try something like this, as the context root is metadata we detect OOTB:

 ![axel_ayala_0-1646671253647.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/f/9f416a34ef28675e7e6d5b047d73a8859e9beb45.png)

---

_[View the full topic](https://community.dynatrace.com/t/extracting-context-root-from-a-url-to-tag-it/34247)._
