You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When integrating AMP with Firebase Analytics no information is registered
How do we reproduce the issue?
Create a firebase project with a new Analytics Account in the Firebase Console
Register a web application with Firebase Hosting enabled
Initialize a local Firebase Project with the Firebase CLI with Hosting integration
Create a simple AMP page using the amp-analytics element inside the public directory
Configure the amp-analytics tag to reference the Firebase Analytics measurementId
Serve localy the firebase project with firebase serve
Visit the localhost url to the AMP page
Review there's no information registered in Firebase Analytics
According to the Firebase Analytics documentation, the firebase SDK and the Firebase Analytics library must be referenced via <script> elements in the code:
<!-- The core Firebase JS SDK is always required and must be listed first -->
<scriptsrc="https://www.gstatic.com/firebasejs/8.0.0/firebase-app.js"></script><!--TODO: AddSDKsforFirebaseproductsthatyouwanttouse
https://firebase.google.com/docs/web/setup#available-libraries --><scriptsrc="https://www.gstatic.com/firebasejs/8.0.0/firebase-analytics.js"></script>
Maybe Firebase should be a provider for amp-analytics. Passing the required information about the project, the amp-analytics tag could initialize the application and the analytics product so the events are registered successfully
Tips on Rendering Bugs
Not required (?)
What browsers are affected?
Used Chrome while developing but it's not related to the browser
Which AMP version is affected?
The console prints: Powered by AMP ⚡ HTML – Version 2010132225003
The text was updated successfully, but these errors were encountered:
What's the issue?
When integrating AMP with Firebase Analytics no information is registered
How do we reproduce the issue?
According to the Firebase Analytics documentation, the firebase SDK and the Firebase Analytics library must be referenced via <script> elements in the code:
before calling:
Doing this invalidates the AMP page.
Maybe Firebase should be a provider for amp-analytics. Passing the required information about the project, the amp-analytics tag could initialize the application and the analytics product so the events are registered successfully
Tips on Rendering Bugs
Not required (?)
What browsers are affected?
Used Chrome while developing but it's not related to the browser
Which AMP version is affected?
The console prints: Powered by AMP ⚡ HTML – Version 2010132225003
The text was updated successfully, but these errors were encountered: