Skip to content

piwik.js: setCustomVariable should not throw error when value is undefined #4938

@mattab

Description

@mattab

When setCustomVariable is called with an undefined value:

Uncaught TypeError: Cannot call method 'slice' of undefined piwik.js:2483
Tracker.setCustomVariable piwik.js:2483
apply piwik.js:545
(anonymous function) piwik.js:3082
(anonymous function)

Spec:

  • when custom variable name is undefined, fail silently
  • when custom variable value is undefined, change to empty string

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions