Collecting Meta Tags
  • 06 May 2020
  • 1 Minute to read
  • Contributors
  • Dark
  • PDF

Collecting Meta Tags

  • Dark
  • PDF

Article Summary

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


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

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

You would use the following JavaScript tag configuration:

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

Which generates the following custom query parameters:


Was this article helpful?