Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 33sticks/6fa064baa8a09835b24c0e0619472dd0 to your computer and use it in GitHub Desktop.
Save 33sticks/6fa064baa8a09835b24c0e0619472dd0 to your computer and use it in GitHub Desktop.
try {
if (window.dataLayer.page.attributes.length){
var refinements="";
for (var i = 0; i < window.dataLayer.page.attributes.length; i++) {
if (dataLayer.page.attributes[i].attributeInfo){
refinements += dataLayer.page.attributes[i].attributeInfo.refinementValue + ";";
}
}
refinements = refinements.substring(0, refinements.length -1);
return refinements;
}
}catch (e) {
_satellite.notify(e,3);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment