---
title: "Inventorying Sites"
slug: "webtrends-tag-manager-inventorying-sites"
updated: 2024-06-13T20:58:06Z
published: 2024-06-13T20:58:06Z
canonical: "onpremises.webtrends.help/webtrends-tag-manager-inventorying-sites"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://onpremises.webtrends.help/llms.txt
> Use this file to discover all available pages before exploring further.

# Inventorying Sites

## Inventorying Site Collections

### Site Collection List

When first deployed, the Webtrends Tag Manager will need to obtain a list of Site Collections within your tenancy. The inventory process can look for all sites in the environment (matching the desired [template list](/v1/docs/webtrends-tag-manager-web-part-configurations)), or for specific sites using the search functionality found in v3 and above.

![image.png](https://cdn.document360.io/0afe9842-6601-4812-b9e2-2726979f2233/Images/Documentation/image%2892%29.png)

Click the **Inventory Site Collections** button in the center of the screen or the **Inventory** button in the upper right to open the *Inventory Site Collections* side panel.

![image.png](https://cdn.document360.io/0afe9842-6601-4812-b9e2-2726979f2233/Images/Documentation/image%2894%29.png)

---

### Inventory Site Collections Panel

**Site Inventory Mode** - If enabled in the [web part configuration](/v1/docs/webtrends-tag-manager-web-part-configurations), you can choose between **Search** and **All** to inventory sites. If disabled in the web part configuration, the *Site Inventory Mode* toggle is not visible and **Search** mode is used.

#### All Mode

The Search form is disabled and *Inventory Site Collections* is enabled. Clicking the *Inventory Site Collections* button will query for **all** sites in the environment using * as the search term.

![image.png](https://cdn.document360.io/0afe9842-6601-4812-b9e2-2726979f2233/Images/Documentation/image%2895%29.png)

#### Search Mode

The *Inventory Site Collections* button is disabled. Clicking the *Preview* button will query for all sites that match the search criteria, as specified in the *Site Name*, *Site URL*, and *Hub Site URL* input fields. Clicking *Inventory Site Collections* becomes enabled after previewing results, and will inventory all sites found by the specified search query.

          Note:

          

The 3 search fields use an **AND** operation to narrow the results.

![image.png](https://cdn.document360.io/0afe9842-6601-4812-b9e2-2726979f2233/Images/Documentation/image%2896%29.png)

---

![image.png](https://cdn.document360.io/0afe9842-6601-4812-b9e2-2726979f2233/Images/Documentation/image%2897%29.png)

---

#### Search Form

- **Site Name** - This input fields searches for all sites with a matching Title.

          Note:

          

Results are limited to the current **Geo** of the tenancy.
  - *Wildcards* (*) are supported, e.g., Webtrends* will return the *Webtrends Tag Manager* site.
- **Site URL** - This input fields searches for sites using the Relative Path specified.

          Note:

          

To search for the *root* site collection, use "/" as the value.

          Note:

          

The domain is automatically included in the search query.

          Note:

          

Results are limited to the current **Geo** of the tenancy.
  - *Wildcards* (*) are supported, e.g., /sites/webtrends-tag* will return the */webtrends-tag-manager* site.
- **Hub Site URL** - This input fields searches for a single *Hub Site* using the Relative Path specified, then searches for all sites with the same *Hub Site ID (Department ID)* to provide the list of the hub and its spoke sites.

          Note:

          

The domain is automatically included in the search query.

          Note:

          

Results are limited to the current **Geo** of the tenancy.
  - *Wilcards* (*) are **not** supported.  This requires an exact match for the hub site relative path. Searching for a **spoke** site will **not** return results.  Search for the main hub site instead.
- **Clear** - This button clears all the input fields to perform a new search.
- **Preview** - This button runs the search query and displays any matching results in the *Search Preview* section below.

---

- **Search Preview** - This section displays matching results for the search query and the number of results found using the specified criteria.

          Note:

          

The preview for the list of sites is limited to the top 500 results, but the *Inventory Site Collections* query is not.
  - The list of results shows the **Title** and **URL** of the site.
  - The **URL** is clickable to open the site in a *new tab*.
  - The list of results is *scrollable*.

---

- **Cancel** - This closes the side panel without any further action.
- **Inventory Site Collections** - This queries for all matching sites (Search mode) or all sites (All mode) and populates the *Site Collections* list with the required data for each resulting site and closes the *inventory panel*.

---

As the *Inventory Site Collections* query completes, a list of sites will begin to appear in the web part UI. ![image.png](https://cdn.document360.io/0afe9842-6601-4812-b9e2-2726979f2233/Images/Documentation/image%2898%29.png)

          Note:

          

Depending on the size of the tenancy, searching for **all** sites may be a long running task. This task can be sped up or slowed down (to avoid throttling) using the [web part configuration > **API Config**](/v1/docs/webtrends-tag-manager-web-part-configurations) options.

          Note:

          

The search API is used to obtain a list of site collections in the tenancy and collect metadata about each site. Therefore:

- SP search must be configured to allow each site to be displayed within the results.
- The user performing the inventory must have at least *Site Visitor* level permissions on each site to see it in the results.
- Newly created sites may take at *least* 15 minutes to be indexed before they appear within the search results.
- Each site must use an allowed template type.
  - The allowed template types to query are now editable in the [web part configuration > **Site Inventory Templates**](/v1/docs/webtrends-tag-manager-web-part-configurations) list.  Not all template types have been tested.
  - Please contact [Technical Support](https://www.webtrends.com/support/help-center/) for assistance if you find a template type that causes an error.

[Continue](https://onpremises.webtrends.help/docs/webtrends-tag-manager-configuration)
