TagSnippet
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[null,null,["Last updated 2025-08-07 UTC."],[],[],null,["# TagSnippet\n\nThe site tag and event snippet pair for a TrackingCodeType.\n\n| Fields ||\n|-----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### `type` | [TrackingCodeType](/google-ads/api/reference/rpc/v21/TrackingCodeTypeEnum.TrackingCodeType) The type of the generated tag snippets for tracking conversions. |\n| ### `page_format` | [TrackingCodePageFormat](/google-ads/api/reference/rpc/v21/TrackingCodePageFormatEnum.TrackingCodePageFormat) The format of the web page where the tracking tag and snippet will be installed, for example, HTML. |\n| ### `global_site_tag` | `string` The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain. |\n| ### `event_snippet` | `string` The event snippet that works with the site tag to track actions that should be counted as conversions. |"]]