Is there a way to automatically detect and aggregate multiple custom HTML-5 attributes, such as "data-analytics-exp-name," into a cookie using Adobe DTM without user interaction? These attributes would only need to exist on the page and not require any clicking.
Currently, I have a rule that reads a single custom HTML-5 attribute with the following code:
var currExpName = this.getAttribute('data-analytics-exp-name');
However, I am unsure how to approach detecting and aggregating multiple attributes at once. Any suggestions?