Last active
December 18, 2015 22:09
-
-
Save boertel/5852446 to your computer and use it in GitHub Desktop.
Integration with DISQUS
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
| /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */ | |
| var disqus_shortname = '<disqus_shortname>'; // required: replace example with your forum shortname | |
| /* * * DON'T EDIT BELOW THIS LINE * * */ | |
| (function() { | |
| var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; | |
| dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; | |
| (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); | |
| })(); | |
| // Push comment activity to PunchTab | |
| var disqus_config = function () { | |
| this.callbacks.onNewComment = [function() { _ptq.push(['comment', 1]); }]; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://help.disqus.com/customer/portal/articles/466258-how-can-i-capture-disqus-commenting-activity-in-my-own-analytics-tool-