Joshua, this isn't a standard feature / get function that would be available.

You can however manually access ga object created by the tracking library.

If you for example open console for this webpage and type in:

ga.getAll()[0].a.data.values[':trackingId']

You will receive UA-5620270-1 which is probably the main Analytics Account for Stack Overflow. Similar approach should work in your case as well - and also any other attribute that's accessible:

Screen: http://fii.cz/sbdqevk

Answer from Petr Havlik on Stack Overflow
🌐
PPCexpo
ppcexpo.com › home › blog › seo
Where is the Google Analytics Tracking Code ID? -
October 18, 2024 - You can use Google Chrome to visit a site and then right-click to see its PAGE SOURCE (site code). If the site has Google Analytics installed, you’ll find the Google Analytics tracking info within the code, as seen below.
🌐
ECRA Group Inc.
ecragroup.com › home › knowledgebase › how to add or delete…
How to add or delete a Google Analytics tracking code - ECRA Group Inc.
September 14, 2023 - Google Analytics tracking codes allow you to track pageviews and other use information on your district’s public Strategic Dashboard. Add a Google Analytics tracking ID code to your Strategic Dashboard 1. Go to the App Settings page. (How to access the App Settings page) 2. Scroll down to ...
Discussions

Get account ID from Google Analytics Tracking code on page
I am performing an audit using a custom web crawler of mine and was trying to garner the accountID for the legacy implementations of Google Analytics, but I cannot seem to get any of the JavaScript More on stackoverflow.com
🌐 stackoverflow.com
Someone else is using our Google Analytics Tracking code number. What do we do?
After looking over our Analytics today, I realized that another website is also using our same tracking code #, which is cause quite a few incorrect hits to our Analytics. Are there any ways to pr... More on webmasters.stackexchange.com
🌐 webmasters.stackexchange.com
April 26, 2012
Cross-domain google analytics tracking on ccTLD?
Hi, Trying to understand how Google analytics code tracking works on ccTLD by default. Do I need to implement cross-domain tracking to stitch single … More on reddit.com
🌐 r/GoogleAnalytics
1
"Tracking Info" is missing

Is this a GA4 or Universal Analytics property?

GA4 will be set up through the Data Stream whereas the Universal Analytics account should have a “Tracking Code” option. They can both be found in the Admin section under the Property column

More on reddit.com
🌐 r/GoogleAnalytics
4
1
April 23, 2019
🌐
Analytics-toolkit
blog.analytics-toolkit.com › 2016 › google-analytics-tracking-code-id-check-setup
Get Your Google Analytics Tracking Code & ID and Check Your Setup | Analytics-Toolkit.com
September 14, 2016 - On this page you have both your tracking ID (also referred to as Tracker ID, UA ID, Google Analytics ID and sometime incorrectly as “account number”) and your tracking code. At this point you’re read to add Google Analytics to your site: the code is just a JavaScript snippet that needs to be copy-pasted in your site’s code.
🌐
Semrush
semrush.com › blog › google analytics tracking id: what it is & how to find it
Google Analytics Tracking ID: What It Is & How to Find It
March 25, 2024 - In Google Analytics 4 (GA4), a tracking ID for a website is called the measurement ID. It typically has the structure “G-XXXXXXX.” Where “XXXXXXX” is a unique alphanumeric code.
🌐
Google Support
support.google.com › analytics › answer › 9539598
[GA4] Find your Google tag ID - Analytics Help
A Google tag is a piece of code that starts with <!-- Global tag (gtag.js) -->. ... In Admin, under Property Settings, click Data streams. Note: The previous link opens to the last Analytics property you accessed. You must be signed in to a Google Account to open the property.
🌐
Flowxo
support.flowxo.com › flow xo help center › help center › finding your google analytics tracking code
Finding Your Google Analytics Tracking Code - Flow XO Help Center
February 15, 2020 - You can find your GA tracking code in the Admin section of Google Analytics Once you are logged into GA, select the property you want to use (probably the one y
Find elsewhere
🌐
HoliThemes
holithemes.com › home › get google analytics tracking code, tracking id at any time
Get Google Analytics Tracking Code, Tracking ID at Any Time - HoliThemes Blog
March 16, 2018 - Tracking ID will be useful to add Analytics using tools like Google Tag Manager , plugins or similar · Tracking code will be useful to add Analytics directly in to your website.
🌐
BlogAid
blogaid.net › home › how to add google analytics tracking code to your site
How to Add Google Analytics Tracking Code to Your Site | BlogAid
This video shows you how to get your tracking code and add it 3 different ways, including: Insert Headers and Footers WPCode plugin (same plugin, new name) ... NOTE: WPCode settings are now under Code Snippets in the sidebar. How to Add Google Analytics Tracking Code to Your Site
Published   August 12, 2022
🌐
Cool Tabs HelpDesk
help.cool-tabs.com › hc › en-us › articles › 9136184854300-How-to-get-Google-Analytics-tracking-ID-GA4-code
How to get Google Analytics tracking ID (GA4 code) – Cool Tabs HelpDesk
April 16, 2024 - When you create an Analytics account, you create a Google Analytics 4 property, with a measurement ID (G-). The Google Analytics tracking ID is an identifier, similar to G-XXXXX. Here's how to get the tracking code provided by Analytics.
🌐
Blobr
blobr.io › how-to-guides › how-can-you-find-your-google-analytics-tracking-id
How Can You Find Your Google Analytics Tracking ID?
May 21, 2024 - Sign in to your Google Analytics account. Select the property for which you want to find the Tracking ID. ... Click on "Admin" in the bottom left corner. Under the "Property" column, click on "Tracking Info" and then "Tracking Code".
🌐
Tipsnfreeware
tipsnfreeware.com › tips and freeware › wordpress › how to find your google analytics tracking id and code (step-by-step)
How to Find Your Google Analytics Tracking ID and Code
February 10, 2025 - In the Admin page on the left under ... more then one site) In Property settings (in the middle column) click on “Tracking Info” this will expand, and you will see the Tracking code link click on it....
🌐
Zendesk help
support.zendesk.com › hc › en-us › articles › 4408828643098-Setting-up-Google-Analytics-and-third-party-analytics-for-your-help-center
Setting up Google Analytics and third-party analytics for your help center – Zendesk help
Follow the instructions provided by your analytics service for implementing their analytics. Most of the time, you'll be instructed to paste the tracking code snippet into the document_head.hbs theme template file. You can also use Google Tag Manager to implement your analytics tags see Using Google Tag Manager with your help center.
🌐
Google
developers.google.com › google analytics › property id
Property ID | Google Analytics | Google for Developers
If the Property Settings shows a numeric "PROPERTY ID" such as "123...", this is the numeric ID of your Google Analytics property. Note: If the Property Settings shows a "Tracking ID" such as "UA-123...-1", this Property is a Universal Analytics ...
🌐
Google Support
support.google.com › analytics › answer › 12270356
[GA4] Measurement ID - Analytics Help
A measurement ID in Google Analytics is a unique identifier for a web data stream (which is a website registered within Google Analytics). The format of a measurement ID in Google Analytics 4 is 'G-'
🌐
Google
marketingplatform.google.com › about › analytics
Analytics Tools & Solutions for Your Business - Google Analytics
Google Analytics gives you the tools you need to better understand your customers. You can then use those business insights to take action, such as improving your website, creating tailored audience lists, and more.
🌐
Google
tagmanager.google.com
Google Analytics
Google Analytics lets you measure your advertising ROI as well as track your Flash, video, and social networking sites and applications.
🌐
Google Support
support.google.com › analytics › answer › 9304153
[GA4] Set up Analytics for a website and/or app - Analytics Help
Your Google tag is the entire section of code that appears, beginning with: <!-- Google tag (gtag.js) --> and ending with </script> Paste your Google tag immediately after the <head> on each page of your website. Data collection may take up to 30 minutes to begin. You can then use the Realtime report to verify that you're receiving data. Don't see a Data Streams option in the Property column? You are in a Universal Analytics property instead of the GA4 property that you just created.
🌐
ExactMetrics
exactmetrics.com › home › docs › how to check your site for your google analytics tracking code
How to Check Your Site for Your Google Analytics Tracking Code - ExactMetrics
June 4, 2024 - With ExactMetrics, you’re able to insert the following tracking codes: Through our setup wizard, your Google Analytics measurement ID.