Value not defined on Custom Dimensions

I defined this custom dimension called breadcrumb, and for some reason it keeps being shown as “Value not defined”. I wonder if there’s a workaround about it.
I saw some people with the same problem, but no one had a concrete answer to it.

Hi @watermene
How did you track your custom dimension? Can you share the code you used?

Hi @heurteph-ei! Yes, this was the code used.

var _paq = window._paq || [];
$(document).ready(function(){
var breadCrumbListModified = breadCrumbList.map(sub=>sub.split(" ").join("_"));
var breadCrumb= breadCrumbListModified.join('-');

_paq.push(['setCustomDimension', 2, breadCrumb]);

Hi @watermene
I don’t see the page view, but I suppose you track it also…
Did you try to display (in console.log()) the content of breadCrumb?