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.

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

          <td><div id="fb-root"></div><script src=""></script><script type="text/javascript">_ga.trackFacebook(); </script><fb:like-box href="" width="190" show_faces="true" border_color="" stream="false" header="true"></fb:like-box></td>

(function() {
var e = document.createElement(‘script’);
e.async = true;
e.src = (document.location.protocol == ‘file:’ ? ‘http:’ : document.location.protocol) + ‘//’;
window.fbAsyncInit = function() {
FB.init({xfbml: true});
FB.Event.subscribe(‘edge.create’, function(http:/{
_gaq.push(['_trackSocial', 'facebook', 'like', http:/ ]);
FB.Event.subscribe(‘edge.remove’, function(http:/{
_gaq.push(['_trackSocial', 'facebook', 'unlike', http:/]);
FB.Event.subscribe(‘message.send’, function(http:/ {
_gaq.push(['_trackSocial', 'facebook', 'send', http:/]);

Sergey Alexandrovich Kryukov 21-Jun-12 12:35pm    
Not a question.
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