---
title: "Collecting Meta Tags"
slug: "collecting-meta-tags"
updated: 2020-05-06T15:59:16Z
published: 2020-05-06T15:59:16Z
---

> ## 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.

# Collecting Meta Tags

## Collecting Meta Tags
The custom meta tag field causes the tag to scan all meta tags on the page, looking for names that match those specified in the metanames field. Webtrends automatically passes along any meta names and values beginning with `WT.`, `DCSext.` and `DCS.`.

**Default Value:** None

**Example:** 

Suppose you have a page with the following meta tags that you wish to collect as custom parameters: 

```html
<meta name="fruit1" content="apple">
<meta name="fruit2" content="orange">
<meta name="fruit3" content="banana">
```

You would use the following JavaScript tag configuration:

```javascript
window.webtrendsAsyncInit = function () {
        var dcs = new Webtrends.dcs();
        dcs.init( {
                dcsid: "dcs9x99xxxx9xxx9xx9xxxx9x_9x9x",
                metanames: "fruit1,fruit2,fruit3"
        });
        dcs.track();
}

```

 Which generates the following custom query parameters:

`meta_fruit1=apple&meta_fruit2=orange&meta_fruit3=banana`
