Im trying to use the addthis
welcome bar api to detect location, but I wont work. I've managed to everyother config to work except this one.
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-50c562341cdc5d64"></script>
<script type='text/javascript'>
addthis.bar.initialize([
{
"match": {
"LocatedIn": "US"
},
"message": "Welcome",
"action": {
"type": "button",
"text": "Follow us",
"verb": "follow",
"url": "http://www.twitter.com/example"
}
}
]);
</script>
can anyone figure this out?