-
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
[Analytics] send requests to domain derived from variable #19759
Comments
cc @lannka @calebcordry We propose to add a new
The outgoing request will be Let me know what do you think? Other options that has been discussed, but not adopted.
|
Reviving this issue, since the original solution has been proposed the team feels that there might be greater utility in a solution to use unencoded values in other contexts. I know @tingyiwei is blocked on this. @zhouyx Do you feel now feel that the cc/ @ampproject/wg-analytics |
Talked offline, @zhouyx's proposal still seems to be the best solution. |
Closed by #22454 |
What's the issue?
Instead of sending AMP analytics requests to a fixed domain, we'd like to send to domain derived from am Analytics variable.
requests: {
endpoint: ${someVariable}
}
The issue is ${someVariable} always return an encoded string, while here an decoded string is needed.
How do we reproduce the issue?
<script type="application/json"> { "requests": { "pageview": "${documentReferrer}" }, "triggers": { "pageload": { "on": "visible", "request": "pageview" } } } </script>In this case, https%3A%2F%2Fwww.example.com is returned instead of https://www.example.com
What browsers are affected?
ALL
Which AMP version is affected?
ALL
The text was updated successfully, but these errors were encountered: