<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: b3a</title>
    <description>The latest articles on DEV Community by b3a (@b3a).</description>
    <link>https://dev.to/b3a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F289651%2Fe6e3ccec-5f93-441b-894d-dd315cdca345.png</url>
      <title>DEV Community: b3a</title>
      <link>https://dev.to/b3a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/b3a"/>
    <language>en</language>
    <item>
      <title>Creating a new site with Hugo and Netlify, powered also by analytics, automated certs or custom domain config.</title>
      <dc:creator>b3a</dc:creator>
      <pubDate>Thu, 12 Dec 2019 13:53:53 +0000</pubDate>
      <link>https://dev.to/b3a/creating-a-new-site-with-hugo-and-netlify-powered-also-by-analytics-automated-certs-or-custom-domain-config-2p48</link>
      <guid>https://dev.to/b3a/creating-a-new-site-with-hugo-and-netlify-powered-also-by-analytics-automated-certs-or-custom-domain-config-2p48</guid>
      <description>&lt;p&gt;I recently decided to create a new site to share my posts, talks recording, slides and other content, making it more accessible. Having already a static page published with GitHub pages, I explored the currently available options and decided on &lt;a href="https://gohugo.io"&gt;Hugo&lt;/a&gt; and &lt;a href="https://www.netlify.com"&gt;Netlify&lt;/a&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  Hugo and Netlify
&lt;/h4&gt;

&lt;p&gt;&lt;strong&gt;Hugo&lt;/strong&gt; is nowadays one of the most popular open-source static site generators, very flexible, counts with shortcodes and plenty of themes. There is also a cli available, which burst the speed to have your site ready to be published.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Netlify&lt;/strong&gt; then covers all the aspects from continuous deployment workflow with Git integration, supporting several branches and versions, automated certificates renewal or DNS if you choose to use a custom domain.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Install Hugo and create your first site
&lt;/h2&gt;

&lt;p&gt;The first step would be to install Hugo, I am using macOS in the examples if you are using any other operating system, visit the official &lt;a href="https://gohugo.io/getting-started/installing"&gt;installation guides&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ brew install hugo
$ hugo version
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Once we have tested the installation, we are ready to create our first site. The below will also create a folder named b3a.dev where we can now init our git repository.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ hugo new site b3a.dev
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  2. Configuring a theme
&lt;/h2&gt;

&lt;p&gt;Visit Hugo &lt;a href="//themes.gohugo.io"&gt;themes&lt;/a&gt; for a list to consider. You can find from personal or blog to company-oriented. Choose the one that best suits you.&lt;/p&gt;

&lt;p&gt;In the specific theme page, you will find installation guidance. A couple of examples: &lt;a href="https://themes.gohugo.io/beautifulhugo/"&gt;Beautiful Hugo&lt;/a&gt; or &lt;a href="https://themes.gohugo.io/hugo-bootstrap4/"&gt;Hugo Bootstrap4&lt;/a&gt;.&lt;/p&gt;
&lt;h4&gt;
  
  
  2.1 Working with git submodules
&lt;/h4&gt;

&lt;p&gt;Once you have chosen a theme there are several methods to work with it inside your site repository. &lt;/p&gt;

&lt;p&gt;The best practice is to clone the theme as a &lt;strong&gt;git submodule&lt;/strong&gt;, will allow you to manage the theme repository as an independent one, so you can update and pull future versions in a comfortable manner. Also, you will keep your site and the theme isolated, making it also easier to change to a different theme in the future.&lt;br&gt;
Clone the chosen theme as a submodule in the &lt;code&gt;themes&lt;/code&gt; directory:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ cd b3a.dev
$ git submodule add https://github.com/themefisher/timer-hugo.git themes/timer-hugo
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;When you push your changes, the contents of the &lt;strong&gt;submodule&lt;/strong&gt; will appear as a &lt;strong&gt;reference to the commit&lt;/strong&gt; in the original theme repository you are using:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--7DqITu1c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8oafszzphij34pygmz2n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7DqITu1c--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8oafszzphij34pygmz2n.png" alt="Hugo theme as git submodule"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When cloning your site repository, don't forget to use the &lt;code&gt;--recurse-submodules&lt;/code&gt; &lt;strong&gt;flag&lt;/strong&gt; to also download the submodule contents:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ git clone --recurse-submodules https://github.com/b3a-dev/b3a.dev.git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  3. Initial setup
&lt;/h2&gt;

&lt;p&gt;Every theme has specific setup guides, but most of them count with an &lt;strong&gt;exampleSite&lt;/strong&gt; directory that contains some home configuration, nav menu, template blog posts, etc&lt;br&gt;
It will help you to see the theme of your choice in action and start working on your own site structure.&lt;/p&gt;

&lt;p&gt;Copy the contents of the directory &lt;code&gt;exampleSite&lt;/code&gt; inside the theme folder into the main root directory (our site, the one created previously).&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ cp -r exampleSite/* ../../
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Now you can &lt;strong&gt;start Hugo server&lt;/strong&gt; and access your site: &lt;code&gt;http://localhost:1313/&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ hugo serve
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h4&gt;
  
  
  3.1 Hugo cli
&lt;/h4&gt;

&lt;p&gt;There are several actions that we can perform with the provided &lt;code&gt;cli&lt;/code&gt;. Of course, we could also do some of them manually like creating new blog posts, but using the cli helps you build faster.&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ hugo new posts/my-first-post.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Visit the official documentation for a full list of all the hugo &lt;a href="https://gohugo.io/commands/hugo/"&gt;cli available commands&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Site customization
&lt;/h2&gt;

&lt;p&gt;Now we have all we need to start working on our site locally. All the changes that we made are automatically updated, so after starting the &lt;code&gt;hugo server&lt;/code&gt; we can forget about it and just focus on the contents.&lt;/p&gt;
&lt;h4&gt;
  
  
  4.1 Custom content
&lt;/h4&gt;

&lt;p&gt;Naturally, you will need to customize the logo, nav tabs, images, blog posts, the home page, footer, banner...&lt;/p&gt;

&lt;p&gt;Most of them will be located in the different directories inside your site repository, such post for the blog with markdown &lt;code&gt;.md&lt;/code&gt; extension, or static files such images including the logo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do not edit&lt;/strong&gt; any file in the &lt;code&gt;themes&lt;/code&gt; directory. Remember this is a submodule, you will be working on someone else repository, changing the original theme.&lt;br&gt;
If you need to make changes for example to some theme &lt;code&gt;.html&lt;/code&gt; templates, copy the template from the subdirectory in &lt;code&gt;themes/yourTheme&lt;/code&gt; directory into your site equivalent subdirectory.&lt;br&gt;
For example, from &lt;code&gt;yourSite/themes/yourTheme/layouts/partials/banner.html&lt;/code&gt; to &lt;code&gt;yourSite/layouts/partials/banner.html&lt;/code&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  4.2 Working with templates
&lt;/h4&gt;

&lt;p&gt;Usually &lt;strong&gt;markdown&lt;/strong&gt; &lt;code&gt;.md&lt;/code&gt; files are used, common when working with blog posts content. Also &lt;strong&gt;yaml&lt;/strong&gt; format &lt;code&gt;.yml&lt;/code&gt; is used for data definition and Hugo also supports &lt;strong&gt;toml&lt;/strong&gt; &lt;code&gt;.toml&lt;/code&gt;. Below you can find an example in every one of the mentioned formats.&lt;/p&gt;

&lt;p&gt;Every post is written in a &lt;code&gt;markdown&lt;/code&gt; file.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;&lt;code&gt;config.toml&lt;/code&gt; file contains the different menu tabs with the links.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;The home page includes a list of the recent contributions, this data is loaded from a &lt;code&gt;yaml&lt;/code&gt; list.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;Working with templates in our &lt;code&gt;html&lt;/code&gt; layouts helps us customize the output when data may vary from one entry to another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;{{ with ... }}&lt;/strong&gt;&lt;br&gt;
In the first example, we have one layout to show our blog posts, but not every post has the same information, some of them contain recordings, other only slides. Using &lt;code&gt;{{ with ... }}&lt;/code&gt;, only if the param exists the information is loaded.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;{{ range ... }}&lt;/strong&gt; and &lt;strong&gt;{{if eq .param "value"}}&lt;/strong&gt;&lt;br&gt;
In the second example, the links for the different nav tabs are configured, but one of them, unlike the others, points to an id on the same page, not a different page. With &lt;code&gt;{{ range ... }}&lt;/code&gt; we can go through an array. &lt;code&gt;{{if eq .param "value"}}&lt;/code&gt; alow to compare two string values.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;{{ if ... }}&lt;/strong&gt;&lt;br&gt;
The third example is similar to the first one, in the list of content to show on the home page, not every entry of the list has the same attributes. By using the templating in the &lt;code&gt;html layout&lt;/code&gt; we can show the right content for every item.&lt;/p&gt;
&lt;h4&gt;
  
  
  4.3 Converters
&lt;/h4&gt;

&lt;p&gt;Working with all the formats supported by Hugo: &lt;code&gt;.toml&lt;/code&gt;, &lt;code&gt;.yaml&lt;/code&gt;, &lt;code&gt;.json&lt;/code&gt;, &lt;code&gt;.md&lt;/code&gt; or &lt;code&gt;.html&lt;/code&gt;, it is easy to come with the necessity of a converter. You can find some &lt;a href="https://toolkit.site/format.html"&gt;toolkit online&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Or use hugo for that purpose, visit the  &lt;a href="https://gohugo.io/commands/hugo_convert_totoml/"&gt;official guide&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;hugo convert toTOML [flags]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h4&gt;
  
  
  4.4 Add tweet button
&lt;/h4&gt;

&lt;p&gt;Make it easier for others to share your content. &lt;br&gt;
When you want to share something on Twitter, you look for the author &lt;strong&gt;handle&lt;/strong&gt;, then the short &lt;strong&gt;link&lt;/strong&gt; to the content, and some &lt;strong&gt;hashtags&lt;/strong&gt;, in addition to a sentence that &lt;strong&gt;summarizes&lt;/strong&gt; the content you are sharing. Adding a &lt;code&gt;click to tweet&lt;/code&gt; button with all that already set is something your readers will appreciate.&lt;/p&gt;

&lt;p&gt;For example, if we wanted to tweet this content: &lt;code&gt;Check out this talk: “Cloud-native monitoring with Prometheus” by @beatrizmrg https://youtu.be/ZGckorAJ1IQ #PrometheusIO #commitconf&lt;/code&gt;, we need:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;endpoint&lt;/strong&gt; &lt;code&gt;http://twitter.com/intent/tweet&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;text&lt;/strong&gt; &lt;code&gt;?text=%20..&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;handle&lt;/strong&gt; &lt;code&gt;%20%40..&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;url&lt;/strong&gt; &lt;code&gt;&amp;amp;url=&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;hashtags&lt;/strong&gt; &lt;code&gt;%20%23..&lt;/code&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This would be the href we will use:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;http://twitter.com/intent/tweet?text=Check%20out%20this%20talk:%20“Cloud-native%20monitoring%20with%20Prometheus”%20by%20%40beatrizmrg%20%23PrometheusIO%20%23commitconf&amp;amp;url=https://youtu.be/ZGckorAJ1IQ
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Check the guide &lt;a href="https://help.twitter.com/en/using-twitter/add-twitter-share-button"&gt;How to add the Tweet button to your website&lt;/a&gt; for more complex options.&lt;/p&gt;
&lt;h4&gt;
  
  
  4.5 Shortcodes
&lt;/h4&gt;

&lt;p&gt;A shortcode is a simple snippet inside a content file that Hugo will render using a predefined template.&lt;br&gt;
Hugo has a set of &lt;a href="https://gohugo.io/content-management/shortcodes/"&gt;predefined shortcodes&lt;/a&gt; that represent very common usage: &lt;code&gt;figure&lt;/code&gt;, &lt;code&gt;gist&lt;/code&gt;, &lt;code&gt;highlight&lt;/code&gt;, &lt;code&gt;instagram&lt;/code&gt;, &lt;code&gt;param&lt;/code&gt;, &lt;code&gt;ref and relref&lt;/code&gt;, &lt;code&gt;tweet&lt;/code&gt;, &lt;code&gt;vimeo&lt;/code&gt; or &lt;code&gt;youtube&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;This makes it really easy to embed in your post markdown, for example, a &lt;strong&gt;youtube&lt;/strong&gt; video:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{{&amp;lt; youtube ZGckorAJ1IQ &amp;gt;}}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Nevertheless, another common necessity &lt;strong&gt;not supported&lt;/strong&gt; currently by Hugo is to embed slides. In this case, you will need to build your own shortcode.&lt;/p&gt;

&lt;p&gt;Example of the html wrapper to embed &lt;strong&gt;Google slides&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;h2 id="slides"&amp;gt;Slides&amp;lt;/h2&amp;gt;&amp;lt;style&amp;gt;.embed-container { position: relative; padding-bottom: 58.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }&amp;lt;/style&amp;gt;&amp;lt;/p&amp;gt;
                {{ with .Params.googleslides }}&amp;lt;div class="embed-container"&amp;gt;&amp;lt;iframe src="{{ . }}" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" frameborder="0"&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/div&amp;gt;{{ end }}

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;h4&gt;
  
  
  4.6 Logo
&lt;/h4&gt;

&lt;p&gt;One of the first things we see is the logo, if you don't have one yet, the first step will be to create one. There are tons of free online tools that will help you with the design and colors. &lt;br&gt;
One of my favorites one is &lt;a href="https://www.freelogodesign.org"&gt;freelogodesign&lt;/a&gt;, but there are others such &lt;a href="https://logomakr.com"&gt;logomakr&lt;/a&gt; or &lt;a href="https://hatchful.shopify.com/preview"&gt;shopify&lt;/a&gt;.&lt;/p&gt;
&lt;h4&gt;
  
  
  4.7 Icons
&lt;/h4&gt;

&lt;p&gt;Most themes work with a specific set of icons. A well-known one is &lt;a href="https://fontawesome.com/icons?d=gallery"&gt;fontawesome&lt;/a&gt;. The one I chose uses &lt;a href="https://ionicons.com/"&gt;ionicons&lt;/a&gt;, which means by default I can use any of the supported ones by only setting the right class name.&lt;code&gt;&amp;lt;i class="ion-ios-mic"&amp;gt;&amp;lt;/i&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Most used ones are usually covered, such as Youtube or Twitter. But when others are not, ioicons is missing Medium or DEV, we can use the official ones provided by the sites. DEV one can be found here: &lt;a href="https://dev.to/p/badges"&gt;dev badge&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  5. Forms
&lt;/h2&gt;

&lt;p&gt;Even being a static site, at least a form is commonly used for Contact reasons. Nowadays we provide our social media accounts such as Twitter or Github but there are those who rather prefer sending an email.&lt;/p&gt;

&lt;p&gt;One quick and easy option is to use &lt;a href="https://formspree.io/forms"&gt;formspree&lt;/a&gt; service. Free up to 50 posts per month. You will just need to create an account, verify your email and configure the service:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8LsML5Zk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qv7tclv2l47mlsgwb091.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8LsML5Zk--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qv7tclv2l47mlsgwb091.png" alt="formspree configuration"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Netlify, which is covered in the next section also provides a &lt;a href="https://www.netlify.com/products/forms/"&gt;form service&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  6. Publish your site with Netlify
&lt;/h2&gt;

&lt;p&gt;The first step would be to &lt;a href="https://app.netlify.com/signup?_ga=2.211331925.190547166.1576056176-1403687208.1576056176"&gt;create an account&lt;/a&gt; and a team. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Zl-qJb86--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/28uxclz2shhsiujq8iw6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Zl-qJb86--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/28uxclz2shhsiujq8iw6.png" alt="Netlify team"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As one of the functionalities we are going to use is &lt;strong&gt;push-to-deploy&lt;/strong&gt;, publishing automatically new versions with every push to a git repository, we need to &lt;strong&gt;create a new site&lt;/strong&gt; and configure the access to the repository:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HMnO_AxP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/uyp92l4cui2l7i02ccyw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HMnO_AxP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/uyp92l4cui2l7i02ccyw.png" alt="Authorize Netlify in GitHub"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then we follow the steps, select the repository and the options for deploying. Initially, we are going to work just with the master branch, which will be associated with the &lt;code&gt;production&lt;/code&gt; environment.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6s56F7qx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/whebjl11fay3bgiu46ew.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6s56F7qx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/whebjl11fay3bgiu46ew.png" alt="Netlify deploy config"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Configure the environment variables:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sfuXJQek--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/zlabe2iw6nnl1flfr1bv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sfuXJQek--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/zlabe2iw6nnl1flfr1bv.png" alt="Netlify env vars"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also configure all the parameters in a &lt;code&gt;netlify.toml&lt;/code&gt; file in the root of our git repository. If it exists will overwrite the manually set config. &lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



&lt;p&gt;Remember to set the right baseURL in your site &lt;code&gt;config.toml&lt;/code&gt; file, if you don't you will see the following:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1MObV1ms--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qgt9tyak2oos4p29ppda.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1MObV1ms--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/qgt9tyak2oos4p29ppda.png" alt="baseURL error"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instead of the default one, which usually is &lt;a href="http://example.org"&gt;http://example.org&lt;/a&gt;, you need to use the provided by Netlify or your custom domain if you have one.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xhsHxv6F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/gjotzzrsp542cwt4qha9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xhsHxv6F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/gjotzzrsp542cwt4qha9.png" alt="Netlify first success deploy"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Congratulations, you have successfully deployed your site!&lt;br&gt;
Netlify will provide you with a random name, similar to: &lt;code&gt;stupefied-northcutt-******.netlify.com&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Configure your custom domain
&lt;/h2&gt;

&lt;p&gt;This step is optional, in case you already have or you want to buy a new domain for your site. The easiest way is to use Netlify DNS:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--y77ySYjz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ti82jyjhik2crppah0fw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--y77ySYjz--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ti82jyjhik2crppah0fw.png" alt="Netlify DNS"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are using the domain for email, you will have to add DNS records, you can add them anytime. Read more about &lt;a href="https://docs.netlify.com/domains-https/netlify-dns/"&gt;netlify-dns&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Netlify is going to provide you four nameservers that you then need to configure in your domain provider.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--MpeZpeEW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/deoxauly7jibuk4t6dc1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--MpeZpeEW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/deoxauly7jibuk4t6dc1.png" alt="Netlify nameservers"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have mine with &lt;a href="https://www.namecheap.com"&gt;namecheap.com&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B44WG26e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ahc93h65ma585kvv6a5t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B44WG26e--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/ahc93h65ma585kvv6a5t.png" alt="namecheap.com config"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And you are done. It may take up to 48h to propagate, it took just a few minutes in my case. Once it is complete, it will appear as verified:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B1dcvQ3b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/bxv6wrqk1eifeln0zizq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B1dcvQ3b--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/bxv6wrqk1eifeln0zizq.png" alt="verified domain"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  8. SSL
&lt;/h2&gt;

&lt;p&gt;With Netlify there is no need for further configuration. HTTPS is &lt;strong&gt;enabled by default&lt;/strong&gt;. It integrates with Let’s Encrypt and &lt;strong&gt;automatically provisions, distributes and renews&lt;/strong&gt; your certificate. Of course, you can choose to use your own certificate.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0VaGSrpn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/68nvga3y8agfv3o5kvf3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0VaGSrpn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/68nvga3y8agfv3o5kvf3.png" alt="ssl"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Netlify deploy contexts
&lt;/h2&gt;

&lt;h4&gt;
  
  
  9.1 Continuous Deployment
&lt;/h4&gt;

&lt;p&gt;With the current setup, we already have &lt;strong&gt;Continuous Deployment&lt;/strong&gt; up and running. Every time we make a change to our master branch, the site is automatically built and deployed by Netlify, and the new version is published in our domain.&lt;/p&gt;

&lt;h4&gt;
  
  
  9.2 Split testing
&lt;/h4&gt;

&lt;p&gt;But Netlify provides more flexibility to create workflows with different branches, pull requests merging, versions simultaneously deployed, even split testing. We could choose which percentage of users access to what version of the site.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pSt4fqlI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/86zt5ykmcpgzd4v2qujn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pSt4fqlI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/86zt5ykmcpgzd4v2qujn.png" alt="split testing"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  9.3 Deploy contexts
&lt;/h4&gt;

&lt;p&gt;In this case, we are going to keep it simple. We just need to build, deploy and publish different versions of our site, from different branches, in different URLs. &lt;/p&gt;

&lt;p&gt;In order to do that, we are going to use contexts. There are three predefined: &lt;strong&gt;production&lt;/strong&gt;, &lt;strong&gt;deploy-preview&lt;/strong&gt; and &lt;strong&gt;branch-deploy&lt;/strong&gt;. You can read more about Netlify deploy contexts &lt;a href="https://docs.netlify.com/site-deploys/overview/#deploy-contexts"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;After building the initial version of the site working with &lt;code&gt;master&lt;/code&gt; branch, I have been working in a more light theme version in a different branch &lt;code&gt;light&lt;/code&gt;, and now, I want to deploy this new theme, but not in the production domain where I keep my original site.&lt;/p&gt;

&lt;p&gt;Editing the Netlify site deploy context, the individual branches can be enabled, adding the new one.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xagEyQ_J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/53slhax5sgai4r6if42c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xagEyQ_J--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/53slhax5sgai4r6if42c.png" alt="adding a new branch to deployment config"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, making a push to &lt;code&gt;light&lt;/code&gt; branch triggers automatically a new deploy in Netlify:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--tG2cm6HL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/h2m0g6bt6xoud9k8sdtg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--tG2cm6HL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/h2m0g6bt6xoud9k8sdtg.png" alt="deploy from light branch"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By clicking in preview deploy you can now see your light branch version deployed in a new URL:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--aJCM92h6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/d2su14rrxuo1tkaic10i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--aJCM92h6--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/d2su14rrxuo1tkaic10i.png" alt="access new version"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If using Netlify DNS, branch subdomains can also be enabled, so we can turn the deployed branches into their own subdomains.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QOUGzgb7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4aazkhueeb32d3t4vknx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QOUGzgb7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/4aazkhueeb32d3t4vknx.png" alt="subdomain"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using Netlify URL&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[master branch] main site: &lt;code&gt;https://stupefied-northcutt-******.netlify.com&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[light branch] light version: &lt;code&gt;https://light--stupefied-northcutt-******.netlify.com&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Using a custom domain&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;[master branch] main site: &lt;code&gt;https://b3a.dev&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[light branch] light version: &lt;code&gt;https://light.b3a.dev&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  10. Site Analytics
&lt;/h2&gt;

&lt;p&gt;We have built our new site, designing our logo, adding forms and other features, handy click-to-tweet buttons, we have a continuous deployment workflow implemented with Netlify that allows us to work on different branches automatically publishing several versions and now, it is online! &lt;/p&gt;

&lt;p&gt;How many people are visiting it? Do most of them use their laptops or mobile devices? Which browsers are they using? Do we have any visits from abroad or our audience is national? When participating in technical events or publishing new projects, is this reflected in the number of visits?&lt;br&gt;
To answer all these questions and even get more information we provide our site with analytics.&lt;/p&gt;

&lt;p&gt;There are several options available, most commonly used and the one I have chosen is &lt;a href="https://analytics.google.com"&gt;Google Analytics&lt;/a&gt;, visit also &lt;a href="https://segment.com/"&gt;Segment&lt;/a&gt;.&lt;/p&gt;

&lt;h4&gt;
  
  
  10.1 Create an Account
&lt;/h4&gt;

&lt;p&gt;The first step is to create an account and do the basic configuration, I recommend to not enable any of the options provided in the Account Data Sharing Setting.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--wWHaRuJe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/7g1wwzadssgreu24vdds.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wWHaRuJe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/7g1wwzadssgreu24vdds.png" alt="New Google Analytics account"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DXvqrHD5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vtoi3njl5ve5d2waso4s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DXvqrHD5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/vtoi3njl5ve5d2waso4s.png" alt="Web and app"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  10.2 Create a Property
&lt;/h4&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YSUM1ucY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/sqrmv7v5dc0y635tr62p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YSUM1ucY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/sqrmv7v5dc0y635tr62p.png" alt="Creating a property"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Currently, we have an account and a property associated with it, both with their specific IDs. In order to see them click in the menu:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0SlFHOkm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/v0swrdr5vlwjdnklv6da.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0SlFHOkm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/v0swrdr5vlwjdnklv6da.png" alt="menu to see IDs"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iauMfn22--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/tpy0m2gyttceu9od156c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iauMfn22--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/tpy0m2gyttceu9od156c.png" alt="Different IDs for account and property"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The diagram below will help you understand how Google Analytics works and what objects and identifiers do we need to create.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Buzspygc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j7yy6pmwd7k6n1p6oh8e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Buzspygc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j7yy6pmwd7k6n1p6oh8e.png" alt="google analytics structure"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Organization&lt;/strong&gt;: is optional, represents a company, groups products or users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account&lt;/strong&gt;: user account.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Property&lt;/strong&gt;: represents an application or web site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Stream&lt;/strong&gt;: represents the stream from the end-user contact point (android app, ios app, web site) to Google Analytics. Data streams will be created in the &lt;strong&gt;Firebase project&lt;/strong&gt; linked to the Analytics property.&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  10.3 Create a Data Stream
&lt;/h4&gt;

&lt;p&gt;Now we need to create the data stream.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--FXnNNOeK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0tciordpre3o2u551i0p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FXnNNOeK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/0tciordpre3o2u551i0p.png" alt="New data stream"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After that, we need to get the &lt;strong&gt;Measurement ID&lt;/strong&gt; not the &lt;code&gt;Stream ID&lt;/code&gt;.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--E7uF5bIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/uf57k7dlkf3rchxvv42r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--E7uF5bIu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/uf57k7dlkf3rchxvv42r.png" alt="Data Steram data"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  10.4 Configuring our site
&lt;/h4&gt;

&lt;p&gt;Most themes support by default google analytics, check your &lt;code&gt;config.toml&lt;/code&gt; file for the param &lt;code&gt;googleAnalitycsID&lt;/code&gt;. If you find it, just need to set the value with the &lt;code&gt;Measurement ID&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;If you cannot find the parameter in the theme you chose, copy the code provided in the Global Site Tag (gtag.js) and add it to an element present in every one of your pages, for example, the header or the footer.&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;
 

&lt;p&gt;And you are done. After at least 24h you will start to see statistics of the activity on your site.&lt;/p&gt;

&lt;p&gt;Demographics:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PztKbGv---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/kdmyaz0pp1j76iz2bk7e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PztKbGv---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/kdmyaz0pp1j76iz2bk7e.png" alt="Google analytics statistics Demographics"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By behavior:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--udVJsr1V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/9dkntuaddx9lf9vsg2vd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--udVJsr1V--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/9dkntuaddx9lf9vsg2vd.png" alt="Google analytics statistics by behavior"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;By technology:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9UIW1NGM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/hujxxyigunc6m54zbsl7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9UIW1NGM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/hujxxyigunc6m54zbsl7.png" alt="Google analytics statistics by technology"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QQBmkDcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/7dri0bevi1wo5f14djyo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QQBmkDcU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/7dri0bevi1wo5f14djyo.png" alt="Google analytics statistics by technology"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>hugo</category>
      <category>netlify</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
