Kalista Payne 3bf4af8d8b Set up analytics scripts on demand post user load (#15501)
* fix(analytics): can't get consented user during main,js load

* fix(race): don't let gtag load twice
also refactor to avoid unnecessary _getConsentedUser() calls

* fix(lint): need user ID for gtag config

* fix(analytics): adjust script loads and refs

* fix(vue): try moving plugin to most relevant file

* fix(amplitude): correct event fn

* fix(analytics): direct load gtag from uri

* fix(ga): use ga-gtag for loading google

* fix(lint): import order

* refactor(analytics): remove superfluous setUser fn

* fix(amplitude): return to Javascript SDK syntax

* refactor(misc): remove unneeded asyncs

* refactor(analytics): slim down if checks
2025-09-04 13:43:18 -05:00
2017-10-12 16:44:28 +02:00
2025-03-04 16:19:44 -06:00
2025-08-29 15:44:19 -05:00
2020-11-30 20:02:06 +01:00
2016-09-07 08:44:57 -05:00
2025-02-11 12:05:28 -06:00
2020-04-08 18:44:30 +02:00
2024-03-11 09:59:57 -05:00
2025-08-29 15:44:19 -05:00
2019-10-18 16:52:21 +02:00
2020-04-28 09:17:46 +05:30
2025-09-02 09:01:10 -05:00
2025-09-02 09:01:10 -05:00
2016-05-23 13:58:31 +02:00
2024-07-19 17:37:31 -05:00

Habitica Build Status

Habitica is an open-source habit-building program that treats your life like a role-playing game. Level up as you succeed, lose HP as you fail, and earn Gold to buy weapons and armor!

Want to contribute code to Habitica? We're always looking for assistance on any issues in our repo with the "Help Wanted" label. The wiki pages below and the additional linked pages will tell you how to start contributing code and where you can seek further help or ask questions:

Interested in contributing to Habiticas mobile apps? Visit the links below for our mobile repositories.

Habitica's code is licensed as described at https://github.com/HabitRPG/habitica/blob/develop/LICENSE

Found a bug? Please report it to admin email rather than create an issue (an admin will advise you if a new issue is necessary; usually it is not).

Creating a third-party tool? Please review our API Usage Guidelines to ensure that your tool is compliant and maintains the best experience for Habitica players.

Have any questions about Habitica or contributing? See the links in the Habitica website's Help menu. Theres FAQs, guides, and the option to reach out to us with any further questions!

Description
A habit tracker app which treats your goals like a Role Playing Game.
Readme 1.9 GiB
Languages
JavaScript 52.4%
CSS 23.7%
Vue 23.1%
SCSS 0.7%