Hi @rmastop
After few tests, it looks like the following custom js variable would work :
function () {
if (dataLayer.findLast(element=>element.event==‘stg.click’)) {
return dataLayer.findLast(element=>element.event==‘stg.click’).element.offsetParent.attributes.class?.value;
}
else {
return ‘foo’;
}
}
Is it bad practice ? Sorry for being that stubborn, but i’d really enjoy your opinion about this