Currently Google Analytics has two different versions available. There's the newer Google Analytics 4 or the original Google Universal Analytics How you can get your Google Analytics snippet depends on which version of Google Analytics you’re using.
http://site.com/notion-google-analytics
It’s fairly easy to determine which version of Google Analytics you’re using. Simply go to:
https://analytics.google.com/analytics/web/
If your dashboard looks like the following then you’re using Google Analytics 4:
Google Analytics 4 Dashboard
If your Google Analytics Dashboard looks like the following, then you’re using Google Analytics Universal:
Google Analytics Universal.
The instructions on how to get those are slightly different for Google Analytics 4 and Google Analytics Universal.
Let’s look into how to get it first for Google Analytics 4.
For Google Analytics Universal skip to Section 2.2.
Click on the “Settings” icon in the left side panel.
Afterwards simply select “Data Streams” in the 2nd column of the property list. If you don’t have a property yet, then you might have to create one.