How To Create An Account in Google Analytics

Creating an account in Google Analytics is essential to obtain all kinds of data about the performance of your website, such as the exact number of visitors, which pages are more or less interesting, which devices they are using to navigate or even demographic and geographic data.

To access Google Analytics, you need to have an account in Google, either with a Gmail.com address or with another associated one. In case you don’t have one, you need to register here.

Once you have met this requirement, access Analytics with your information and click on the “Register” button.

Next, you will see a form in which you will have to specify the information for the website you want to collect data about (name of the web, URL, the sector that would include the site, country, time zone …). Once you have completed all the fields, then click on the “Get tracking ID” button.

After accepting the terms and conditions of the service, you’ll get a tracking ID with a structure similar to this: UA-XXXXXXXXX-X.

This ID code must be entered in the website to be analyzed, in one of the following ways:

  • METHOD 1: Introducing a snippet of code that includes the tracking ID just after the <head> of the page or pages to follow:

 

<! – Google Analytics global site tag (gtag.js) ->

<script async src = “https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID”> </ script>

<script>

window.dataLayer = window.dataLayer || [];

function gtag () {dataLayer.push (arguments)};

gtag (‘js’, new Date ());

gtag (‘config’, ‘FOLLOW-UP ID’);

</ script>

 

(It would be enough to replace the highlighted part in yellow with the tracking ID).

• METHOD 2: If your website is built in WordPress and your template does not have a field in which to enter the code, you can do it by using a plugin such as Yoast Google Analytics (once installed, you can add the ID in the “Settings” section) or through the template header.php (you would have to modify the header.php through an FTP client and enter it in the <head> tag). Click here and we’ll tell you how to install the Yoast plugin in WordPress. 

Once you’ve entered the ID on your website and, after a maximum time of 48 hours, you should start to see data. In any case, you can do a quick check in the “active users” section in real time and visit your own website to see if it detects you.