Created
July 12, 2011 20:01
-
-
Save araddon/1078835 to your computer and use it in GitHub Desktop.
Capturing Facebook install/authorize for full page view (http redirects) not popups
This file contains 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
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function(){ | |
// get list of query params from referrer | |
var qps = Webtrends.Webtrends.getQryParams(document.referrer); | |
// if they just finished auth, it will have access_token in url | |
if (qps && qps.access_token){ | |
Webtrends.multiTrack({argsa:"DCS.dcsuri","/multitrackevents/my_custom_action","WT.convval","fb.install","WT.conv","1"]}) | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment