-
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
Web Stories CTA Updates I2S #34449
Comments
While I do like this new direction, I feel like there are still too many unanswered questions. External attachments have been notably finicky, and oftentimes slow. Even today, on the most recent generation of iPhones, swiping up to open a CTA takes over a second to even start loading the page, with a weird graphical bug at the top of the page. And returning to the story currently removes some of the outlinks for some obscure reasons. RPReplay_Final1621524953.MP4And yes, I know pages can't open in a new tab because the swipe events are not trusted events on iOS, but the experience still feels weird. Not to mention that returning to a story with the back button also triggers a new story view event in the analytics. Also, with the And when a story is embedded with an amp-story-player, will the swipe detection be reliable enough to consistently perform the user's intended behavior (scrolling the parent page or swiping on the link). Is it all worth it for the "swipe" gesture? Can a click on the now much more button-looking outlink not simply open a new tab? Could the amp-story-outlink not wrap an All I'm saying is that CTAs are probably the most important element business-wise for story publishers. They need to be rock-solid and can't fail. I'm just not sure the outlink is at that level. |
Thank you for this feedback @cpauwels.
These are regressions. #34330 fixes these and we're working to get it into production.
Filed #34470 for tracking this.
Agreed that it's not ideal. We're looking for the best solution for this. Please see comment below about the "swipe" gesture.
@raovs for analytics context.
The
We are addressing this use-case and are taking care to be sure the user's intention is performed.
We're aiming to keep the UX for inline attachments and outlinks symmetrical since their UI and function of "opening more information" is similar. I hear the case for outlinks being tapable only. In the current implementation the UI for outlinks and inline buttons look the same. A big part of this update is to create visual distinction between the buttons and with that could be an opportunity for the UX to be more specific to each.
The
We agree CTAs and linking are core to Web Stories and need to be rock-solid. |
Thanks @processprocess! Agreed on most fronts. I do think it's worth us evaluating the usage of the |
One more question around this: will the new outlink support Apple's Private Click Measurement and Google's Conversion Measurement API ? This would be especially important for conversion tracking on marketing-focused stories. |
More good points, @cpauwels! After my comment yesterday, we discussed offline and believe we can change the API (without great impact to the user-facing feature) such that publishers specify an It will involve some changes to get there, but we will circle back and provide an update here when those details are accounted for. |
I'd be adding one extra requirement on what @newmuis just said about switching to a |
For One accessibility recommendation would also be to add a stroke or outline (or both) on the |
The images are children within an
Thank you for pointing this out and providing the reference. |
As discussed during design review, this looks great. Thanks for presenting such a clear plan that was so easy for us all to approve. |
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. |
Summary
We're updating CTAs within Web Stories with more features for customization while creating a more consistent UX.
Web Stories enable creators to link to additional content (either arbitrary external links or additional content in a page attachment) in a few different ways today: tap targets that open a tooltip, tap targets that directly open an external link (
<amp-story-cta-layer>
) and page attachments (<amp-story-page-attachment>
).This set of options is flexible, but has led to complexity for tools and end user confusion. In particular, the
<amp-story-cta-layer
> allows the placement of multiple CTAs on the bottom of the page, but in practice very few Stories make use of this freedom. In almost all cases, creators simply use a single CTA at the bottom of the page. Further, it is easy to create poor user experience situations using the cta-layer (e.g. a wide invisible tap target at the bottom of the page).In order to improve the end user experience with tap targets, we plan to make a few key changes:
<amp-story-page-outlink>
) and page inline attachments (<amp-story-page-attachment>
).Rich theming and customization
Safely deprecate functionality of the without requiring changes to older Stories. Please see I2D for details on the depreciation roll out plan.
Beyond this, we will continue to monitor how CTAs are used in Web Stories, and are open to feedback as well as new use cases.
Timeline
Experiment to Enable
AMP.toggleExperiment('amp-story-page-attachment-ui-v2', true)
in the dev tools console of the Web Story.Cookies are required for the nightly channel to work.
If the updates are not visible, check that cookies are enabled.
Android: home > three dot menu > Settings > Site settings > Cookies > "Allow cookies"
iOS Safari: Settings > Safari > uncheck
Prevent Cross-Site Tracking
Demo Instructions
Our demo story features configuration options and in-context examples.
<amp-story-page-outlink>
Previously known as
<amp-story-page-attachment>
with an href attribute. We heard lots of confusion around this so we’ve given it it’s own component name.The biggest change to API of this is that it accepts a single
a
element child. This enables leveraging systems (browsers, crawlers/bots, etc) that utilize information from tags.Existing stories will continue to work but we suggest using
<amp-story-page-outlink>
to get all of the new theming features.API updates
a
element child.theme="custom"
requires two additional attributes:Examples
Default
This is equivalent to what is currently implemented.
Dark theme
Custom theme text
Custom theme text, dynamic contrast protection
Contrast protection is automatically applied to ensure readability and a11y compliance.
When the accent element is “background”, this is applied to the text.
In this example the green color is lighter than the previous example.
Custom theme background
Custom theme background, dynamic contrast protection
Contrast protection is automatically applied to ensure readability and a11y compliance.
When the accent element is “background”, this is applied to the text.
In this example the blue color is lighter than the previous example.
cta-image
cta-image: none
<amp-story-page-attachment>
API updates:
Examples:
Default
One image
Two images
Dark theme
No text
/cc @ampproject/wg-approvers
The text was updated successfully, but these errors were encountered: