--- title: "One JS Tag For Tracking Multiple Subdomains" slug: "one-js-tag-for-tracking-multiple-subdomains" updated: 2023-01-19T21:20:04Z published: 2023-01-19T21:20:03Z canonical: "docs.catchpoint.com/one-js-tag-for-tracking-multiple-subdomains" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.catchpoint.com/llms.txt > Use this file to discover all available pages before exploring further. # One JS Tag For Tracking Multiple Subdomains ## Overview If you need to monitor multiple subdomains, we have developed a workaround which will enable you to do so using only a single tag. The script enables you store all the domains to an object and then use the actual page domain to find the specific site id at runtime. You can rename the variables as needed if you already use the same name on your page. Be sure to replace the value assigned to `var cgfUrl` to your unique tracking code. ## Implementation For this example, the current domain page is going to be "example.com". As a reminder, for the most accurate timing, please place the tag in the head of the html.  ~~~ ~~~