cwilson1031 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Facebook share tracking causes blank screen after successful post #133

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
--------------------------------------------------------------------------
NOTE: This issue tracking system is for developer products only.  If you
are not a developer/programmer and have a problem with a Google web site,
please report the problem to the appropriate group.  More information can
be found here: http://www.google.com/support/
--------------------------------------------------------------------------

Name of API affected:
Analytics Data Export API

Issue summary:
Provide a brief summary of the issue you're experiencing.
FB.Event.subscribe('message.send', function(targetUrl) {
  _gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]);
});
causes a blank screen after posting a share. tag does fire and is tracked in GA.

site:
m.freal.com/score/try_again.php
http://m.freal.com/score/thank_you.php

both of these when viewed on iPhone3 or Android OS and a successful share is 
made will provide a blank screen. this can be closed by the user and browsing 
continues. 

Code:
</script><script type="text/javascript">

    function fbShareWinner() {

        var options = { name: "I scored with f'real!", link: "http://m.freal.com/score/", description: "I scored in the latest f'real scan & score sweepstakes! you can scan qr codes on f'real lids with your smartphone for your chance to win, or see http://m.freal.com/score/rules.php for another way to play. find out where to get f'real near you at m.freal.com/score.", display: 'popup', caption: "f'real milkshakes", picture: "http://m.freal.com/images/icon_freal.png" };

        Facebook.share(options,

        function (success) {

            _gaq.push(['_trackSocial', 'facebook', 'send', 'http://m.freal.com/score/thank_you.php']);

        }, 

        function (failure){

        });

    }

    $(document).ready(function(){

        FB.Event.subscribe('edge.create', function(targetUrl) {

            _gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);

        });

        FB.Event.subscribe('edge.remove', function(targetUrl) {

            _gaq.push(['_trackSocial', 'facebook', 'unlike', targetUrl]);

        });

        $('#fbShareLink').bind('click', function(){         

            fbShareWinner();

            return false;

        });

    });

</script>

Steps to reproduce issue:
1.
2.
3.

Expected output:
What do you expect to see after performing the above steps?

Actual results:
What do you actually see after performing the above steps?

Notes:
Provide any additional information which might be useful here. Feel free to
attach screenshots or sample code which demonstrates the issue being
described.

Original issue reported on code.google.com by brad.rep...@dal.tribalddb.com on 6 Jul 2011 at 10:22

GoogleCodeExporter commented 9 years ago
Removing an obsolete label that was used when these issues were in the 
gdata-issues project.

Original comment by jrobbins@google.com on 21 Jul 2011 at 10:05