filter · JavaScript filters
Async Google Analytics (make_google_analytics_async)
- Category:
- JavaScript
- CoreFilters:
- No
- OptimizeForBandwidth:
- No
- Risk:
- Dangerous set
Deprecated and a no-op: it rewrote the retired ga.js snippet to its asynchronous form. The name is accepted so old configurations load; remove it.
When to use it
- Deprecated: the module accepts the name so that an existing configuration loads, and does nothing with it.
- Risk rating on these docs: Dangerous.
- Targets the retired ga.js.
Risks
The JavaScript filters page lists no specific risks for this filter.
Frequently asked questions
- What does the make_google_analytics_async filter do?
- Deprecated and a no-op: it rewrote the retired
ga.jssnippet to its asynchronous form. The name is accepted so old configurations load; remove it. - Is make_google_analytics_async enabled by default?
- No. The module accepts the name so that existing configurations load, but the filter does nothing.
- Should I remove make_google_analytics_async from my configuration?
- Yes. The name is kept only so that an existing configuration still loads; removing it changes nothing in the output.
Related filters
- combine_javascript — Combine JavaScript
- defer_javascript — Defer JavaScript
- extend_cache_scripts — Extend cache for scripts
- include_js_source_maps — Include JS source maps
- inline_javascript — Inline JavaScript
- make_show_ads_async — Async AdSense
- outline_javascript — Outline JavaScript
- rewrite_javascript_external — Minify external JavaScript
This page is drawn from the make_google_analytics_async entry on JavaScript filters. Every filter in one table: PageSpeed filters.
Google Analytics, AdSense, Fonts and Hosted Libraries are Google products. We-Amp isn't affiliated with or endorsed by Google.