UNPKG

measurement-framework

Version:

Collection of Javascript code to implement a browser based measurement system for websites. It uses a cookie to store a users action on a webpage and let you map thoose actions to a particular state in the user journey.

6 lines (4 loc) 226 B
function attrib(elementObj, attributeName) { return elementObj && attributeName && elementObj.attributes && elementObj.attributes[attributeName] ? elementObj.attributes[attributeName].value : null } export default attrib