# Parameterize the domain of one synthetic monitor

**URL:** <https://community.dynatrace.com/t/parameterize-the-domain-of-one-synthetic-monitor/53339>\
**Category:** Synthetic Monitoring\
**Tags:** browser-monitors, synthetic-monitoring\
**Created:** [September 15, 2025, 3:21am UTC](https://community.dynatrace.com/t/parameterize-the-domain-of-one-synthetic-monitor/53339 "2025-09-15T03:21:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quirina](https://avatars.discourse-cdn.com/v4/letter/q/8797f3/32.png) [@Quirina](https://community.dynatrace.com/u/Quirina)\
**Post date:** [September 15, 2025, 3:21am UTC](https://community.dynatrace.com/t/parameterize-the-domain-of-one-synthetic-monitor/53339/1 "2025-09-15T03:21:05Z")

</div>

Hi All,

We’re facing one problem - We’re going to create some synthetic monitors for some key pages both in our 2 environments (Testing environment and Production environment).

There’s only the domain is different for those 2 environments. All the others are same.

e.g. Homepage:&nbsp; &nbsp; **Testing Environment** :&nbsp; [s1-live.abc.com](http://s1-live.abc.com)

**Production Environment** : [www.abc.com](http://www.emerson.com)

Previously, we’ll both create synthetic monitors both in those 2 environments for homepage.  
May I know if there’re any way in dynatrace to parameterize the domain, then we will no need to create synthetic monitors in 2 environments just only change the domain?

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [September 15, 2025, 7:56am UTC](https://community.dynatrace.com/t/parameterize-the-domain-of-one-synthetic-monitor/53339/2 "2025-09-15T07:56:52Z")

</div>

Hi,  
unfortunately, I’m not aware of an option to parameterize the domain directly.  
However, you can use Monaco/Terraform automation, where variables let you create a synthetic test. For example, use a base\_url variable, and when you upload the configuration it will automatically take its value:  
${base\_url}/homepage

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [September 15, 2025, 12:20pm UTC](https://community.dynatrace.com/t/parameterize-the-domain-of-one-synthetic-monitor/53339/3 "2025-09-15T12:20:20Z")

</div>

Alternatively, you can check here: [Pre- and post-execution scripts for HTTP monitors in Classic — Dynatrace Docs](https://docs.dynatrace.com/docs/observe/digital-experience/synthetic-monitoring/http-monitors-classic/pre-and-post-scripting-for-http-monitors-classic#variables)
