Hi @arunpatidar ,
We have two different pages i.e.,Search and I/O page, in the site. So , we are developing a new component which renders google ad script in the enduser page to integrate the ads from third party tools . So, one of the script variable is pageType that should render the PageName when the input is selected as search in the component or renders the query parameter from the URL when the input is selected as I/O.Also the second variable 'adshow' should be seen only in the non-prod environment.So please let me know your thoughts on how to achieve this requirement.
JS used in HTML:
var pageOptions =
{
"pageType": "${search term/query}",
"adshow": "on",
"linkTarget": '_blank'
}
;
Thanks in Advance!