Home Blog Archive Internet Google Analytics Code integration - how to

Google Analytics Code integration - how to

  • Oct 25, 2025
  • 617
  • 0

Google Analytics is the most common and simplest analysis tool for your Website. Not at least because the Code can be easily embed. Read how you integrate the Tracking Tool right on your Website.

Tracking Code in Google Analytics generate

A prerequisite for the use of Google Analytics is of course a Google account. If you have such, you can start.
  1. Go to Google Analytics and log in top right with your Google account. You land on the account overview. Should be empty if you have not included a Google Analytics Code.
  2. Click top right "manage" to access the account management. On the left, click "New account". Here you can make several settings.
  3. You can leave the selection, "What do you want to capture" to "Website". Below, you can choose from according to your requirements the enhanced features of the Universal Analytics Beta. But also the functions of the stable Analytics Version are usually sufficient.
  4. Enter in the below form with URL, Name, industry, and time zone of your site.
  5. The indication of the account name is the only Analytics-internally important for the management of multiple Websites. The options for the data sharing settings you can deselect optional all without reducing the size of the function range for your Analytics account. Finally, click on "get Tracking ID" and accept the terms and conditions of use.
Integrated Code check

Analytics Code to install and check

  1. Now, Analytics shows you the actual Tracking Code; this is usually a Format like UA-12345678-1 Analytics gives you various options of how to use the Code on your Website can integrate.
  2. The easiest way: Copy&Paste of the displayed javascript snippet in the head section of your Website source code. Important: you should Insert the script directly before the closing Tag. In order to use Analytics in a privacy compliant way, you need to true at the end of the pasted snippet the line "ga('set', 'anonymizeIp',);" to insert. This ensures that the IP addresses of the users are not given in full price.
  3. Anyone who knows php can generate js Code in a php File and this on the page template immediately after the day include.
  4. If you want to embed the Analytics Code in your Blog, it is sufficient for most Blog systems, copy the Code in the Master Template or Theme that all the sub-pages serves as a base. In the Wordpress Dashboard, you can edit this, e.g., via appearance > Editor. You paste the Code as described above either in the header.php or the footer.php so he reaches for all the Templates. In addition, there are also numerous Pluginswhich will give you the installation of Google Analytics easier.
  5. Now you should check if the Tracking works correctly. Since it can take up to a day until the information collected by Google is actually displayed in Analytics, go back to the management interface of Analytics and click on the "Tracking information" (see Screenshot above). There now should be installed: "Status: receiving data active" or "Tracking". If not, then this Google Support-entry more.
  6. The user to view statistics for your Website, go to the home page and select your account. Initially, you need to update the table if necessary. Note that it may take some time before Google has loaded the first data. It might help, once and again login.
After a legal dispute in 2011, Google has updated the privacy policy for Analytics. The necessary information about data protection on this page from Google read.

YOU MAY ALSO LIKE

0 COMMENTS

LEAVE A COMMENT

Human?
1 + 3 =