Closed cabaalexander closed 2 years ago
From amp-analytics
documentation:
In the case where a single configuration applies to multiple elements, instead of creating separate configuration for each, it can be simplified by specifying all the selectors at once. To do so, specify an array of selectors that are comma separated and individually enclosed in quote marks.
In order to match multiple elements using the same selector, you'll have to wrap the selector in an array ([]
):
"carouselChange": {
- "selector": ".amp-wp-article-content",
+ "selector": [".amp-wp-article-content"],
Description
When there are more than one slideshow on a page I expect that each one send a track call when clicking
previous
ornext
arrow every time user clicks on it.Right now the current behavior is that when you click on a slideshow's
next
arrow and then click on thesecond
slideshow's next arrow, the second slideshow wont trigger the track call and vice versa.Note: This is the current implementation we have in place to track slideshow changes π
The class
.amp-wp-article-content
is the parent containing both/all slideshows.Reproduction Steps
Test Link: https://nxsttv-stage.go-vip.net/wcmh/news/local-news/double-slideshow/amp/
devtools -> network
segment
Relevant Logs
No response
Browser(s) Affected
No response
OS(s) Affected
No response
Device(s) Affected
No response
AMP Version Affected
No response