How do I override parameters collected by the JavaScript tag?

How do I override parameters collected by the JavaScript tag?

For products:

Webtrends OnDemand
Webtrends Analytics 9.x
Webtrends Analytics 8.x
Webtrends Analytics 7.x

Last modified: 8/26/2010

Situation:
You are trying to override parameters automatically collected by the JavaScript tag by adding code to the "Insert Customizations" section of your tag.  However, the value is not being overridden in the hit.

Solution:
The JavaScript tag collects default data during the "dcsCollect" function and will override any existing values set before it was run.  The only way to get data into the standard fields is to add them to META tags.  Data in META tags is always gathered last and will override values collected by the tag.  It is not possible to change this behavior without modifying the JavaScript tag.

If modifying the META data on the page is not possible, here is a code example that will change the META data programatically:

//<![CDATA[
// Add custom parameters here.
//_tag.DCSext.param_name=param_value;
var meta = document.createElement('meta');
meta.name = 'DCS.dcssip';
meta.content = 'servername.com';
document.getElementsByTagName('head')[0].appendChild(meta);
_tag.dcsCollect();

    • Related Articles

    • Compatibility of the Webtrends SmartSource Data Collector, Webtrends Analytics and the Webtrends JavaScript Tag

      For products: Webtrends Analytics 9.2x Webtrends Analytics 8.x Last modified: 5/27/2010 Introduction: Logs created by any version of the SDC can be analyzed in Webtrends. Fundamentally, the SDC has not changed over the years. The major changes within ...
    • Mobile Query Parameters

      For products: Webtrends On Demand Last modified: 12/05/2012 Introduction: With the release of Webtrends on Demand 10.6 many new mobile query parameters have become available. This list is designed to show and explain the new Mobile Query Parameters ...
    • What are the advantages of using the v10 tag?

      Products Webtrends On Demand Question What are the advantages of using the v10 tag? Answer     Webtrends Streams This only works with the v10 tag.     Social analytics features built-in Webtrends is the leader in social analytics: in addition to our ...
    • Where do I find documentation about Webtrends Tag Builder?

      For products: Webtrends On Demand Last modified: 7/6/2010 Introduction: All documentation related to Tag Builder can be found at http://tagbuilder.webtrends.com 1. After navigating to the location and hover the mouse pointer to in the section labeled ...
    • What are valid values for the Webtrends media parameters?

      Products Webtrends On Demand Webtrends Analytics 8.7 Webtrends Analytics 8.0x Webtrends Analytics 8.1 Webtrends Analytics 8.5 Webtrends Analytics 8.7 Webtrends Analytics 9.2 Introduction As of Webtrends Analytics 8.7d, Webtrends no longer supports ...