Created
July 2, 2015 18:18
-
-
Save parkerproject/b6b47eb6c91d37c6c8fc to your computer and use it in GitHub Desktop.
doing something with URL
This file contains hidden or 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
| uiData = uiData.replace('?',''); | |
| var uiDataArray = uiData.split('&'); | |
| var eObj = {}; | |
| uiDataArray.map(function(data){ | |
| var eArray = data.split('='); | |
| eObj[eArray[0]] = eArray[1]; | |
| console.log(eObj); | |
| return eObj | |
| }); | |
| dataLayer = [eObj]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment