Unable to override variable with invalid value

This article addresses an issue with Adobe Analytics where you are unable to override Analytics variables. To resolve this problem, ensure that a valid value is specified.

Description description

Environment

  • Adobe Analytics
  • AppMeasurement for JavaScript

Issue/Symptoms

Unable to override variable with an invalid value.  Here are example steps to reproduce this issue.

Step 1. Send s.t() call with value below.

eVar1: Old value

eVar2: Old value

Step 2. Send s.t() call with an override object.

var y = new Object();

y.eVar1 = "";

y.eVar2 = "New value";

s.t(y);

Notice that the following Analytics values will be sent. The value for eVar1 is not overridden as the empty value

eVar1: Old value

eVar2: New value

Resolution resolution

A valid value needs to be specified to override Analytics values.

Refer to the documentation on variable overrides.

recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f