AbdFatah / analytics-issues

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

Example code on Social Interaction Analytics documentation page has a typo #216

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The example code for reporting Twitter interactions has a typo in it:

function trackTwitter(intent_event) {
    if (intent_event) {
      var opt_pagePath;
      if (intent_event.target && intent_event.target.nodeName == 'IFRAME') {
            opt_target = extractParamFromUri(intent_event.target.src, 'url');
      }
      _gaq.push(['_trackSocial', 'twitter', 'tweet', opt_pagePath]);
    }
  }

  //Wrap event bindings - Wait for async js to load
  twttr.ready(function (twttr) {
    //event bindings
    twttr.events.bind('tweet', trackTwitter);
  });

that variable name on the 5th line of the trackTwitter function should be 
opt_pagePath, not opt_target

Original issue reported on code.google.com by goldenap...@gmail.com on 7 Jun 2012 at 7:54

GoogleCodeExporter commented 9 years ago
Oops. I just noticed that I posted this in the wrong section. Sorry. Can this 
be moved to Documentation or deleted?

Original comment by goldenap...@gmail.com on 7 Jun 2012 at 7:55