Last active
December 19, 2015 21:28
-
-
Save guillaumew/6020074 to your computer and use it in GitHub Desktop.
Track Linked In shares in Javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Importing Linked In Library --> | |
<script src="//platform.linkedin.com/in.js" type="text/javascript"> | |
lang: en_US | |
</script> | |
<!-- Add Javascript Callback function --> | |
<script> | |
function callback(){ | |
alert("ok"); // Change to real code | |
} | |
</script> | |
<!-- Insert LinkedIn share button with callback attribute --> | |
<script type="IN/Share" data-counter="top" data-onsuccess="callback" ></script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment