amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-analytics appsflyer vendor getting 404

Open fredsh2k opened this issue 5 years ago • 1 comments

Description

i've implemented a basic html page with amp-analytics tag and appsflyer as a vendor I get 404 when looking at dev tools network calls

appsflyer vendor config was recently merged to amphtml repo https://github.com/ampproject/amphtml/blob/main/extensions/amp-analytics/0.1/vendors/appsflyer.json

why can't i access this config via <amp-analytics type="appsflyer" id="appsflyer">?

Reproduction Steps

  1. create a simple index.html page with the following content
<!doctype html>
<html amp lang="en">
  <head>
    <meta charset="utf-8">
    <script async src="https://cdn.ampproject.org/v0.js"></script>
    <title>Hello, AMPs</title>
    <link rel="canonical" href="https://amp.dev/documentation/guides-and-tutorials/start/create/basic_markup/">
    <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">

    <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>


    <script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>

  </head>
  <body>
    <h1 id="hello">Hello AMPHTML World!</h1>
        <amp-analytics type="appsflyer" id="appsflyer">
        <script type="application/json">
            {
                "vars":
                {
                    "webAppId": "c1e0b335-5b96-486e-8694-01c165df48d0"
                },
                "linkers": {
                    "enabled": true
                }
            }
        </script>
    </amp-analytics>
  </body>
</html>
  1. open in browser
  2. dev tools console: image
  3. network tab: image

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

fredsh2k avatar Aug 16 '21 11:08 fredsh2k

explanation: it's in the nightly build, but not yet in beta or stable

https://amp.dev/documentation/guides-and-tutorials/learn/spec/release-schedule/

Beta (404): https://cdn.ampproject.org/rtv/032108052321001/v0/analytics-vendors/appsflyer.json Nightly (OK): https://cdn.ampproject.org/rtv/032108132216000/v0/analytics-vendors/appsflyer.json

fredsh2k avatar Aug 16 '21 15:08 fredsh2k