506116c7d0
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
19 lines
486 B
JavaScript
19 lines
486 B
JavaScript
import AmpIncludeCustomElement from './AmpIncludeCustomElement'
|
|
|
|
export default function AmpAnalytics(props) {
|
|
return (
|
|
<>
|
|
<AmpIncludeCustomElement name="amp-analytics" version="0.1" />
|
|
<amp-analytics type={props.type}>
|
|
{props.script && (
|
|
<script
|
|
type="application/json"
|
|
dangerouslySetInnerHTML={{
|
|
__html: JSON.stringify(props.script),
|
|
}}
|
|
/>
|
|
)}
|
|
</amp-analytics>
|
|
</>
|
|
)
|
|
}
|