-
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: Shared interpolation & ampState() URL variable #13079
Comments
The variable code is here
To be clear, this {
vars: {
varA: "123",
varB: "${varA}"
},
requests: {
a: "${varA}&${varB}"
}
} if you do Another way to do similar thing is to use {
requests: {
a: "AMP_STATE(x)"
}
} I think |
Thanks for the pointers Hongfei. Let's work with the requesting team and see if they can contribute this if possible. |
It looks like this is the FR to support amp-bind state variables in amp-analytics. If so, +1. Use case: Ecommerce partner has a shopping cart and wants to set up an analytics ping for add-to-cart. That ping would include the product ID and price (which can be SSR'ed into the page) and also # of items being added. One alternative way to implement this might be to allow |
This issue hasn't been updated in awhile. Do you have any updates? |
Is there any work left here? |
I believe sharing variable interpolation code between extensions is not done yet. I think priority can be dropped though. |
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. |
${var}
) so it can be shared with another extension${ampState(foo.bar)}
variable that reads from amp-bind state/cc @lannka
The text was updated successfully, but these errors were encountered: