Created
November 1, 2011 20:05
-
-
Save araddon/1331743 to your computer and use it in GitHub Desktop.
Non Async FB JS
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
| <div id="fb-root"></div> | |
| <script src="//connect.facebook.net/en_US/all.js"></script> | |
| <script> | |
| FB.init({appId:'156294357760329', status:true, cookie:true, oauth:true, xfbml:true}); | |
| </script> | |
| <script type="text/javascript" charset="utf-8"> | |
| if (!document.querySelectorAll){document.write('<s' + 'cript lang' + 'uage="jav' + 'ascript" src="/static/web/js/qwery.min.js"></' + 'scr' + 'ipt>');} | |
| window.webtrendsAsyncInit = function() { | |
| var dcs=new Webtrends.dcs().init({dcsid:"YOUR_DCS_ID",timezone:-8,plugins:{facebook:{src:"/static/js/webtrends.fb.js"}}}).track(); | |
| }; | |
| (function() { | |
| var s = document.createElement('script'); s.type="text/javascript"; s.async = true; | |
| s.src = window.location.protocol + '//s.webtrends.com/js/webtrends.js'; | |
| var s2=document.getElementsByTagName("script")[0];s2.parentNode.insertBefore(s,s2); | |
| }()); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment