function amp_analytics_process_amp_analytics in Accelerated Mobile Pages (AMP) 7
Implements hook_process_amp_analytics().
File
- modules/
amp_analytics/ amp_analytics.module, line 67 - AMP Analytics submodule.
Code
function amp_analytics_process_amp_analytics(&$variables) {
$variables['content'] = json_encode($variables['analytics']);
}