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
If I modify "subscriptions-propensity.json" so that _amp_source_origin= is instead __amp_source_origin I no longer get any amp-analytics HTTP requests from my propensity module.
The reason for this is that __amp_source_origin is not allowed as a parameter name and not that it has 2 leading underscores. See #4670 for more details.
What's the issue?
When using amp-analytics if I build a request that has a query string parameter with 2 _'s in it then amp-analytics does not generate any requests.
For example, this generates an HTTP post:
const VENDOR_CONFIG = jsonLiteral({
'requests': {
// Variables
'req' : 'https://pubads.g.doubleclick.net/subopt?',
},
triggers: {
on: {
'on': 'visible',
'request': 'req',
},
'transport': {
'beacon': true,
'xhrpost': false,
'image': false,
},
});
And this does not generate an HTTP post:
const VENDOR_CONFIG = jsonLiteral({
'requests': {
// Variables
'req': 'https://pubads.g.doubleclick.net/subopt?__amp_source_origin=${sourceHost}',
},
triggers: {
on: {
'on': 'visible',
'request': 'req',
},
'transport': {
'beacon': true,
'xhrpost': false,
'image': false,
},
});
How do we reproduce the issue?
What browsers are affected?
I was specifically testing in Chrome; I did not test other browsers.
Which AMP version is affected?
This is the current version of AMP (as of 12/11/2019). I have no seen this work previously (or tried).
The text was updated successfully, but these errors were encountered: