Skip to content

Instantly share code, notes, and snippets.

@moskinson
Created September 26, 2013 16:05
Show Gist options
  • Select an option

  • Save moskinson/6716316 to your computer and use it in GitHub Desktop.

Select an option

Save moskinson/6716316 to your computer and use it in GitHub Desktop.
track sign up after send ajax form and before login
function trackSignupOkPageViewToGAAndLogNewUser(){
fillLoginNewUserForm()
if (typeof _gaq !== "undefined" && _gaq !== null) {
_gaq.push(['_trackPageview', '/signupDone']);
var timeout_for_login = setTimeout(sendFormToLoginNewUser, 300);
}
else sendFormToLoginNewUser()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment