Hi Abhinav,
As per the above scenerio mentioned by you, We would have to check with development team of DTM and confirm the same . However for setting the report suites dynamically based on the URL please follow the points mentioned below.
1. Open the “Customize Page Code” editor and add the code that will set the report suite based on URL conditions. The example below will set the s.account based on the current URL. Please make sure the precedence setting under the global “Customize Page Code” configuration is set to “After UI Settings” This will allow your code changes to override the use of default staging or production report suite settings.
s.usePlugins=true ; function s_doPlugins(s) { var get_url=window.location.href; var suiteid; if(get_url.indexof("www.xyz.com")!=-1) { suiteid="prod-1,prod-2"; } else { suiteid="stag-1,stag-2"; } s.account=suiteid; } s.doPlugins=s_doPlugins;
Please let me know if you have any queries regarding the same.
Thanks & Regards
Parit Mittal