amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

FR: analytics event trigger for amp-carousel item only when it's visible for the first time

Open micyeung opened this issue 9 years ago • 9 comments

Issue

Right now, as a carousel loops through the items, an item will get repeatedly shown and repeatedly fired, which will count as multiple impressions in analytics. https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/amp-carousel-analytics.md

Feature Request

Can we have an analytics event trigger for amp-carousel to fire only when an item is visible for the first time?

micyeung avatar Oct 03 '17 09:10 micyeung

/to @camelburrito

jridgewell avatar Oct 03 '17 20:10 jridgewell

@micyeung Thanks for filing the FR The event gets fired on slide navigation, not on slide shown so this is working as intended. I guess you are requesting a new event, i think you can deduce it with information from existing events.

CC @jasti

camelburrito avatar Oct 03 '17 20:10 camelburrito

CC @rudygalfi

jasti avatar Oct 03 '17 20:10 jasti

Although the business requirements for the first occurrence of elements in amp-carousel were temporarily implemented by using the visible event, but relative to the number of elements in amp-carousel, I had to The current expectation is that there is an event that supports amp-carousel for the first time, or the visible event supports the group selector at the same time to get the element in the group's index

zhang-90 avatar Oct 27 '17 05:10 zhang-90

the only events that get fired on repeated slide changes are amp-carousel-change, amp-carousel-next, amp-carousel-prev

camelburrito avatar Oct 27 '17 05:10 camelburrito

I know, but what we need is that the elements in amp-carousel send the analysis data only at the first occurrence

zhang-90 avatar Oct 30 '17 01:10 zhang-90

@zhang-90 which events(names) are you referring to?

camelburrito avatar Oct 30 '17 05:10 camelburrito

amp-carousel-change, amp-carousel-next, amp-carousel-prevWill continue to send analysis of data, so desperately selected the visible event

zhang-90 avatar Oct 30 '17 08:10 zhang-90

Closing in favor of #12298

jeffjose avatar Jun 20 '18 22:06 jeffjose