/users/account-created does not include Google Analytics tracking script


(Jason Nall) #1

/users/account-created and /users/activate-account currently do not include the Google Analytics tracking script.

I would think the script should be included on these pages so that I can track account creation and account activation events in Google Analytics.

Is there a specific reason GA has been left off of these pages? If not, should I submit a pull request?


(Jeff Atwood) #2

A pull request would be welcome, thanks! Just make sure new user registration does not get broken as that is a critical path for the app.

(Also, this is not a bug, it does not block normal use of the site.)


(Scott Austin) #3

I’m looking forward to seeing this tracking added to Discourse. I’ve got a user funnel that I use to do my daily cohort tracking. Getting new accounts added to that report will very, very useful.

Any idea on a timeframe before we’ll see this added to the code?

Thanks


(Jason Nall) #4

Scotta, I’ve done some work on this and I’m hoping to submit the pull request in the next day or two!

One of the things I’d like to work on next is setting up Google Analytics Universal configuration in the admin panel so that you can track users across devices and track custom events such as creating topics, replies, etc. I’m not quite sure what the scope will be yet, but there’s a lot of analytics and tracking functionality we can get out of a little bit of code and that’s what I’ll be shooting for. I haven’t brought this up to the devs yet for their take on it, but I plan to after I submit this pull request.


How to track user registration with gAnalytics
(Scott Austin) #5

Sounds great Jason. Thanks for your efforts.

Here’s my thoughts from a while back on events to track, Google Analytics Event Tracking.


(Liam Austin) #6

@Dreamhearth legend! Although it doesnt yet seem to be available yet? I think all your ideas on tracking added to the admin will be awesome.


(Jeff Atwood) #7

If Google Analytics is not on these pages (per Site Settings) can you make it so @techapj?


(Arpit Jalan) #8

Okay, I just added Google Analytics script on /users/account-created, /users/activate-account and users/password-reset page.


(Arpit Jalan) #9