amp-analytics.tpl.php in Accelerated Mobile Pages (AMP) 7
Template for amp-analytics.
Available variables:
- content: The json output.
- analytics_attributes: The HTML attributes for amp-analytics, primarily:
- type: The type of analytics account.
See also
template_preprocess_amp_analytics()
1 theme call to amp-analytics.tpl.php
- amp_analytics_element_info in modules/
amp_analytics/ amp_analytics.module - Implements hook_element_info().
File
modules/amp_analytics/amp-analytics.tpl.phpView source
<?php
/**
* @file
* Template for amp-analytics.
*
* Available variables:
* - content: The json output.
* - analytics_attributes: The HTML attributes for amp-analytics, primarily:
* - type: The type of analytics account.
*
* @see template_preprocess_amp_analytics()
*/
?>
<amp-analytics<?php
print $analytics_attributes;
?>>
<script type="application/json">
<?php
print $content;
?>
</script>
</amp-analytics>