My end goal is to be able to send:
$('[data-track]').live('click', function () {
mpmetrics.track("Share", {'method': 'twitter'});
});
My question is how I can store the Share, method, twitter in the data-bind attribute so that they are dynamic and I can change the variables on any data-track attribute in my app.
<a data-track="XXXXXX" href="#">Tweet</a>
For XXXXXX, how can I set the 3 variables and then parse them in the data-track binding?
Thanks
Then…