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

**URL:** https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524
**Category:** Feature
**Created:** [October 27, 2014, 4:06am UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524 "2014-10-27T04:06:10Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Dreamhearth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dreamhearth/32/37141_2.png) [@Dreamhearth](https://meta.discourse.org/u/Dreamhearth)
#### Post date: [October 27, 2014, 4:06am UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/1 "2014-10-27T04:06:10Z")

</div>

/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?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 27, 2014, 4:25am UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/2 "2014-10-27T04:25:15Z")

</div>

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.)

---

<div class="post-metadata">

### Author: ![scotta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scotta/32/114875_2.png) [@scotta](https://meta.discourse.org/u/scotta)
#### Post date: [November 5, 2014, 6:11pm UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/3 "2014-11-05T18:11:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Dreamhearth](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dreamhearth/32/37141_2.png) [@Dreamhearth](https://meta.discourse.org/u/Dreamhearth)
#### Post date: [November 5, 2014, 7:04pm UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/4 "2014-11-05T19:04:39Z")

</div>

> [@scotta](#):
>
> Any idea on a timeframe before we’ll see this added to the code?

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.

---

<div class="post-metadata">

### Author: ![scotta](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scotta/32/114875_2.png) [@scotta](https://meta.discourse.org/u/scotta)
#### Post date: [November 6, 2014, 8:54pm UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/5 "2014-11-06T20:54:53Z")

</div>

Sounds great Jason. Thanks for your efforts.

Here’s my thoughts from a while back on events to track, [Google Analytics Event Tracking](https://meta.discourse.org/t/google-analytics-event-tracking/20083).

---

<div class="post-metadata">

### Author: ![liamaust](https://avatars.discourse-cdn.com/v4/letter/l/858c86/32.png) [@liamaust](https://meta.discourse.org/u/liamaust)
#### Post date: [November 27, 2014, 11:55am UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/6 "2014-11-27T11:55:14Z")

</div>

@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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 16, 2016, 12:58am UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/7 "2016-01-16T00:58:19Z")

</div>

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

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [April 1, 2016, 8:29pm UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/8 "2016-04-01T20:29:18Z")

</div>

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

[https://github.com/discourse/discourse/commit/05164d4cae5ca6b5bb6a72c5a98ab3471804c021](https://github.com/discourse/discourse/commit/05164d4cae5ca6b5bb6a72c5a98ab3471804c021)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [April 1, 2016, 8:30pm UTC](https://meta.discourse.org/t/users-account-created-does-not-include-google-analytics-tracking-script/21524/9 "2016-04-01T20:30:37Z")

</div>


