Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ajax signup does not easily allow analytics tracking #2

Open
quartzmo opened this issue Nov 11, 2012 · 3 comments
Open

Ajax signup does not easily allow analytics tracking #2

quartzmo opened this issue Nov 11, 2012 · 3 comments

Comments

@quartzmo
Copy link
Owner

The ajax signup action is nice for the user, but a separate congratulations or thank_you page would make it easier to track signups in analytics software without custom javascript.

@nickhammond
Copy link
Contributor

Could always just add event tracking for the subscribe button too, that's what I ended up doing. Be nicer to bind it to the submit event of the form though.

<input type="submit" value="Sign up" onClick="_gaq.push(['_trackEvent', 'Actions', 'Sign up', 'Submitted the signup form']);"/>

Reference: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

@nickhammond
Copy link
Contributor

I just added this in my fork, wasn't sure yet what you had in mind for implementation details so I didn't submit a pull request.

nickhammond@d86734f

@quartzmo
Copy link
Owner Author

My implementation idea was to keep things super basic and friendly to any analytics solution by replacing the ajax form with a full page (re)load on submit. The ajax is nice but signing up is such a big event that I'm sure any user will be ok with full reload. (The main goal of this project is to avoid embedding a mailchimp form and going to mailchimp's site for the success/error screen.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants