'Zendesk Help Center get current domain

I wanna include the following tag in template <meta name="robots" content="noindex"> But only if the current domain has zendesk.com in it. This will improve SEO on company domain company.com/help/

I need a variable that stores the current domain.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source