amp_print_analytics

do_action( 'amp_print_analytics',  array $analytics_entries )

Description #

Triggers before analytics entries are printed as amp-analytics tags.

This is useful for printing additional amp-analytics tags to the page without having to refactor any existing markup generation logic to use the data structure mutated by the amp_analytics_entries filter. For such cases, this action should be used for printing amp-analytics tags as opposed to using the wp_footer and amp_post_template_footer actions.


Parameters #

$analytics_entries

(array) Analytics entries, already potentially modified by the amp_analytics_entries filter.



Changelog #

Changelog
Version Description
1.3 Introduced.