discourse/app/assets/javascripts
Justin DiRose 09b8a61f65
FEATURE: Add Google Universal Analytics v4 as an option (#11123)
Per Google, sites are encouraged to upgrade from Universal Analytics v3 `analytics.js` to v4 `gtag.js` for Google Analytics tracking. We're giving admins the option to stay on the v3 API or migrate to v4. Admins can change the implementation they're using via the `ga_version` site setting. Eventually Google will deprecate v3, but our implementation gives admins the choice on what to use for now.

We chose this implementation to make the change less error prone, as many site admins are using custom events via the v3 UA API. With the site stetting defaulted to `v3_analytics`, site analytics won't break until the admin is ready to make the migration.

Additionally, in the v4 implementation, we do not enable automatic pageview tracking (on by default in the v4 API). Instead we rely on Discourse's page change API to report pageviews on transition to avoid double-tracking.
2020-11-06 14:15:36 -06:00
..
admin FIX: Show error message if user is already silenced or suspended (#10988) 2020-11-03 17:38:56 +02:00
confirm-new-email DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
discourse FEATURE: Add Google Universal Analytics v4 as an option (#11123) 2020-11-06 14:15:36 -06:00
discourse-common DEV: Remove legacy tag and category routes (#10338) 2020-11-03 16:57:58 +02:00
docs DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
ember-addons DEV: Remove ember-addons (#9559) 2020-04-28 10:14:49 -04:00
locales DEV: Remove i18n-patches (#11139) 2020-11-06 00:08:36 +01:00
pretty-text FIX: pretty text allow list (#10977) 2020-10-28 13:22:06 +11:00
select-kit FIX: Correct "no tags" route in tag drop-down (#11142) 2020-11-06 10:28:57 +11:00
wizard UX: Wider canvas buttons in wizard (#11124) 2020-11-05 09:55:35 -05:00
activate-account.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin.js.erb
app-boot.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
application.js REFACTOR: Remove Discourse.__widget_helpers 2020-08-06 14:35:46 -04:00
auto-redirect.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
browser-detect.js Improve support for old browsers (#9515) 2020-04-29 21:40:21 +03:00
discourse-loader.js REFACTOR: Import visit helper rather than using a global variable 2020-10-15 13:22:05 -04:00
discourse-shims.js Create proper shim for xss library - second attempt 2020-09-15 10:42:51 -04:00
embed-application.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
ember_include.js.erb
ember_jquery.js Revert "Revert "DEV: Import MessageBus from message-bus-client instead of globals"" 2020-05-28 08:42:36 -04:00
env.js
google-tag-manager.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
google-universal-analytics-v3.js FEATURE: Add Google Universal Analytics v4 as an option (#11123) 2020-11-06 14:15:36 -06:00
google-universal-analytics-v4.js FEATURE: Add Google Universal Analytics v4 as an option (#11123) 2020-11-06 14:15:36 -06:00
handlebars-shim.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
main_include_admin.js REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
markdown-it-bundle.js REFACTOR: Do not rely on module order for discourse-markdown loading 2020-09-18 13:31:55 -04:00
onpopstate-handler.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
polyfills.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
pretty-text-bundle.js FIX: pretty text allow list (#10977) 2020-10-28 13:22:06 +11:00
print-page.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
service-worker.js.erb Revert "DEV: enable cors to all cdn get requests from workbox. (#10684)" (#11076) 2020-10-30 16:05:35 +11:00
set-prototype-polyfill.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
start-discourse.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
template_include.js DEV: Support for import Handlebars from 'handlebars'; (#9600) 2020-04-30 16:41:02 -04:00
test-shims.js Move click and fillIn to imports 2020-10-27 08:55:56 -04:00
vendor.js DEV: Remove i18n-patches (#11139) 2020-11-06 00:08:36 +01:00
widget-runtime.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
wizard-application.js DEV: Remove i18n-patches (#11139) 2020-11-06 00:08:36 +01:00
wizard-shims.js FIX: adds shims for popper in wizard (#10658) 2020-09-14 12:33:14 -04:00
wizard-start.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
wizard-vendor.js FIX: adds shims for popper in wizard (#10658) 2020-09-14 12:33:14 -04:00