Created
February 12, 2019 10:12
-
-
Save neuronix/adf2f7a53e33ecb4e16ff60adf18d1e8 to your computer and use it in GitHub Desktop.
Extract Adjust event tokens
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
/* | |
1. Open up your adjust app settings | |
2. Select events | |
3. Paste & run in console | |
4. Copy your map EVENT_NAME->EVENT_TOKEN | |
*/ | |
var tokens = {}; | |
var lis = document.querySelectorAll("[scroll='event-types'] li[event='event']"); | |
lis.forEach(function (li) { | |
var name = li.querySelector('.item-name').innerText; | |
var token = li.querySelector('.item-token').innerText; | |
tokens[name] = token; | |
}); | |
console.log(JSON.stringify(tokens, null, 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment