Change the One Tap prompt positionStay organized with collectionsSave and categorize content based on your preferences.
Page Summary
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 thedata-prompt_parent_idattribute, 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. WhenFedCMis used, browser fully controls the
prompt location. Hence, custom layouts arenotsupported.
Otherwise, display One Tap inside a container element to change prompt position.
To do so, specify the DOM ID of the container element in thedata-prompt_parent_idattribute.
The following code example reuses theg_id_onloadelement 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."],[],[]]