WAT() and WATP()

Returns the values of the Web Analytics Tracking (WAT) parameter with the specified external key. Contact Salesforce support to set the external key values in the Web Analytics Connector. The function substitutes optional parameters for calls to the WATP function within the tracking parameter set in the Sender Profile.

The WAT call parameters must use constant or numeric values. Variable, attribute, field, and faction values don't allow job-level resolution to the desired link query string parameters.

The WAT() function has two parameters:

  • parameterSetKey (string): Required. The key of the WAT parameter set.
  • parameterValue1 (string): Required. Value used to replace the WATP function tracking parameter.

You can optionally append additional parameter values (parameterValue2, parameterValue3...) to the end of the function.

This example returns the value of the Omniture tracking parameter with 1234 substituted for references to Omniture within the tracking parameter. The parameter for the WAT function specifies the ordinal of the parameter inside the tracking parameter set in the Sender Profile Analytics Profile.

This example returns the value of the Omniture tracking parameter with 1234 substituted for references to WATP(1) within the tracking parameter. This call also substitutes 5678 for references to WATP(2) within the tracking parameter.