Click here to Skip to main content
15,938,218 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
hello i want to track my social plugin report in google analytics plz send me code of it.i also add these codes.

XML
<head>
<script type="text/javascript">
 function trackFacebook(undefined) {
  try {
    if (FB && FB.Event && FB.Event.subscribe) {
      FB.Event.subscribe('edge.create', function(http:/www.creative-edge.in) {
        _gaq.push(['_tracksocial','facebook', 'like',
            ,http:/www.creative-edge.in, undefined]);
      });
      FB.Event.subscribe('edge.remove', function(http:/www.creative-edge.in) {
        _gaq.push(['_tracksocial','facebook', 'unlike',
            ,http:/www.creative-edge.in, undefined]);
      });
      FB.Event.subscribe('message.send', function(http:/www.creative-edge.in) {
        _gaq.push(['_tracksocial','facebook', 'send',
            ,http:/www.creative-edge.in, undefined]);
      });
    }
  } catch (e) {}
}
</script>
</head>
        <tr>

          <td><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><script type="text/javascript">_ga.trackFacebook(); </script><fb:like-box href="http://www.facebook.com/iCreativeEdge" width="190" show_faces="true" border_color="" stream="false" header="true"></fb:like-box></td>

<script>
(function() {
var e = document.createElement(‘script’);
e.async = true;
e.src = (document.location.protocol == ‘file:’ ? ‘http:’ : document.location.protocol) + ‘//connect.facebook.net/en_US/all.js’;
document.getElementById(‘fb-root’).appendChild(e);
}());
window.fbAsyncInit = function() {
FB.init({xfbml: true});
FB.Event.subscribe(‘edge.create’, function(http:/www.creative-edge.in){
_gaq.push(['_trackSocial', 'facebook', 'like', http:/www.creative-edge.in ]);
});
FB.Event.subscribe(‘edge.remove’, function(http:/www.creative-edge.in){
_gaq.push(['_trackSocial', 'facebook', 'unlike', http:/www.creative-edge.in]);
});
FB.Event.subscribe(‘message.send’, function(http:/www.creative-edge.in) {
_gaq.push(['_trackSocial', 'facebook', 'send', http:/www.creative-edge.in]);
});

};
</script>
Posted
Comments
Sergey Alexandrovich Kryukov 21-Jun-12 12:35pm    
Not a question.
--SA
Sandeep Mewara 21-Jun-12 15:34pm    
And the issue is?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900