Change the One Tap prompt position
Stay organized with collections
Save and categorize content based on your preferences.
AI-generated Key Takeaways
Custom positions for the One Tap prompt are not supported when using the FedCM API, as the browser controls its size and position.
You can customize the One Tap prompt's position by displaying it inside a container element and specifying its DOM ID using the data-prompt_parent_id attribute, except on mobile browsers or when FedCM is used.
Do not hide any One Tap prompt content or obscure its origin from a Google iframe to avoid potential project or account suspension.
By default, the One Tap prompt is displayed in the top-right corner of desktop
web browser windows. When FedCM is used, browser fully controls the
prompt location. Hence, custom layouts are not supported.
Otherwise, display One Tap inside a container element to change prompt position.
To do so, specify the DOM ID of the container element in the
data-prompt_parent_id attribute.
The following code example reuses the g_id_onload element as the container
element and displays the One Tap prompt in the specified position:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[],[]]