Tag located outside the document head, which should only be a direct child of the document head.
Error: Invalid attribute: data-amp-bind
Fix: Make sure you are using only allowed attributes for AMP components. If you are using custom attributes, they should be listed in the AMP component's documentation.
JavaScript Errors Error: Custom JavaScript is not permitted
view image description here
export const AmpImplyTracking = () => {
const url = 'ua.google.com';
const encodedUrlUA = encodeURIComponent(url);
return (
<script id="amp-access" type="application/json"
dangerouslySetInnerHTML={
{ __html: `
{
"authorization" : "https://${encodedUrlUA}/api/resolve/genfpamp?channel=2&source=5&fpid=READER_ID&requrl=SOURCE_URL&reqref=DOCUMENT_REFERRER&host=uniquewebsite.com",
"noPingback": true,
"authorizationFallbackResponse": {
"error": true
},
"namespace": "usercapturing"
}
`}
}
/>
)
}