discourse/app/views/common
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
..
_discourse_publish_stylesheet.html.erb FEATURE: adds support for mobile view on page publishing (#10662) 2020-09-13 13:50:23 +02:00
_discourse_stylesheet.html.erb FEATURE: Add stylesheets to bootstrap.json endpoint 2020-09-04 14:12:49 -04:00
_google_tag_manager_body.html.erb
_google_tag_manager_head.html.erb extract inline JS for google tag manager 2018-09-17 09:56:00 +10:00
_google_universal_analytics.html.erb FEATURE: Add Google Universal Analytics v4 as an option (#11123) 2020-11-06 14:15:36 -06:00
_second_factor_backup_input.html.erb FIX: Allow the app to generate and accept longer backup codes (#8761) 2020-01-21 14:28:31 +00:00
_second_factor_text_field.html.erb