Created
August 18, 2016 23:29
-
-
Save 33sticks/6fa064baa8a09835b24c0e0619472dd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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