Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Last active December 16, 2015 20:12
Show Gist options
  • Save erikhazzard/af39b59b2e6b8255bde2 to your computer and use it in GitHub Desktop.
Save erikhazzard/af39b59b2e6b8255bde2 to your computer and use it in GitHub Desktop.
Mixpanel set avatar image URL
$('#userlist_wrapper .grid_row').each(function(i, el){
var el = $(el);
var id = el.attr('data-distinct_id');
$('.avatar_cell img', el).attr(
'src',
'YOUR_URL_FOR_IMAGE/' + id + '.gif'
);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment