amp_analytics_entries

apply_filters( 'amp_analytics_entries',  array $analytics_entries )

Description #

Add amp-analytics tags.

This filter allows you to easily insert any amp-analytics tags without needing much heavy lifting. This filter should be used to alter entries for transitional mode.


Parameters #

$analytics_entries

An associative array of the analytics entries we want to output. Each array entry must have a unique key, and the value should be an array with the following keys: `type`, `attributes`, `config_data`. See readme for more details.



Changelog #

Changelog
Version Description
0.7 Introduced.