How to setup google analytics account and connect tracking code to your website, blog or funnel page.

How to setup google analytics account and connect tracking code to your website, blog or funnel page.

Here are the steps to set up a Google Analytics 4 (GA4) account and insert the tracking and clicks code into a website:


1. Go to the Google Analytics website (analytics(dot)google(dot) com) and sign in with your Google account.


2. Click on "Admin" in the lower left corner of the interface.


3. In the "Account" column, click on the drop-down menu and select "Create Account" or choose an existing account if you already have one.


4. Fill in the required information for your account, such as the account name and the data sharing settings. Click on "Next" when you're done.


5. In the "Property" column, click on "Create Property."


6. Choose the platform you want to measure: "Web" for a website.


7. Enter the property details, including the website name, URL, and time zone. Click on "Next" to continue.


8. Select your preferred data stream options. You can choose to set up a Web data stream or use the Measurement ID for an existing one. Follow the prompts to complete the setup.


9. Once the property is created, you'll be redirected to the property's "Data Streams" page. Make a note of the Measurement ID, as you'll need it later to insert the tracking code into your website.


10. To insert the tracking code into your website, copy the GA4 tracking code snippet provided on the "Data Streams" page.


11. Open the HTML source code of your website and locate the “<head>” element section on every page of your website, / blog etc..


12. Paste the GA4 tracking code snippet just below the opening <head> or.

<h1> or <h2> tags” section on every page of your website, / blog etc..

It will look something like this:

“v<!-- Google tag (gtag.js) --> <script async src="https://www(dot)googletagmanager(dot) com/gtag/js?id=G-91W9R47TRT"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-“your G4 measurement =id code”'); </script>”


13. Save the changes to your website's source code and publish the updated version of each of your websites pages.


14. You can test to ensure the code is being seen by G4 analytics from the same page that you obtain the tracking code noted above.


15. In many cases if you are working with various blog platforms you can insert your code in the main blog layout header section just once and this will be picked up on all pages that are visited, thus saving you work not having to insert the code into each page.


16. After the code is successfully inserted, you can start tracking your website's data in Google Analytics 4. Remember that it may take some time before data starts appearing in your GA4 account. Additionally, note that this is a general overview of the setup process, and specific details or steps may vary depending on your website's platform or CMS.



Andrew Parks January 2024

Powered by