Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ju1/0131651f8a288635ce1d0966fc35bb55 to your computer and use it in GitHub Desktop.
Save ju1/0131651f8a288635ce1d0966fc35bb55 to your computer and use it in GitHub Desktop.
<script>
FB.Event.subscribe('edge.create', function(targetUrl) {
dataLayer.push({
'event': 'socialInteraction',
'socialNetwork': 'Facebook',
'socialAction': 'Like',
'socialTarget': targetUrl
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment