-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
amp-analytics fires only occasionally in amp-ad-custom #26643
Comments
@lannka We took a look at this issue, but think that it's probably ads related rather than analytics related. Would you mind taking a look? |
sure, looking |
while still looking, some early finding is a race condition between the loading of amp-analytics.js script and the injection of |
it is because the amphtml/src/service/extensions-impl.js Lines 404 to 418 in 036ab52
It happens when the amp-analytics.js script gets loaded before the because Lines 795 to 804 in 036ab52
so @dvoytenko @choumx did I miss anything here? is a dynamically injected AMP element supposed to be stubbed if the extension is already fully loaded on the page? |
Sorry I'm not familiar with amp-analytics injection in FIE. Is the code above the correct, non-racy path? FIE doesn't actually call |
@lannka I don't think this is the reason here. I'll need to debug this. Do you have a good localdev repro instructions? |
@dvoytenko I pushed a branch for testing. pls check out #28882 and thanks for helping! |
Discussed with @dvoytenko offline, we both believe the launch of ampdoc-fie experiment will fix the issue. It's not worth at this time to add additional hacks to fix amp-ad-custom. We will prioritize the launch of ampdoc-fie instead. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
What's the issue?
amp-analytics fires only occasionally in amp-ad-custom
How do we reproduce the issue?
I've made this sample.
https://test.ms-rd.com/amp/amp-ad-custom/test01.html
Reload page several times
amp-analytics fires only occasionally
When amp-analytics is successful, there is a request at the following URL.
https://b94.yahoo.co.jp/1/m?
https://b94.yahoo.co.jp/1/v?
What browsers are affected?
All browsers
Which AMP version is affected?
Version 2001281851410
The text was updated successfully, but these errors were encountered: