Skip to content

Instantly share code, notes, and snippets.

@neuronix
Created February 12, 2019 10:12
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 neuronix/adf2f7a53e33ecb4e16ff60adf18d1e8 to your computer and use it in GitHub Desktop.
Save neuronix/adf2f7a53e33ecb4e16ff60adf18d1e8 to your computer and use it in GitHub Desktop.
Extract Adjust event tokens
/*
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