• +40 (750) 43 77 44 [email protected]
Mon - Fri | 09:00 - 16:00
WhatsApp
Blog
DevSnit
  • Home
  • About us
  • Services
    • Digital Marketing
      • Search Engine Optimisation (SEO)
      • Search Engine Marketing (SEM)
      • SEO Content Writing Services
      • Local SEO
      • Technical SEO
      • Link Building Services
      • PPC Advertising
      • Digital Marketing Strategy
    • Web Services
      • Web development
      • Custom Web Design
      • WordPress Web Design
      • eCommerce Web Design
      • GDPR Solutions
      • eMail Marketing Services
      • SMS Marketing Services
      • Website Hosting Services
    • Social Media Marketing
      • Social Media Brand Management
      • Social Media Advertising
      • Social Media Reputation Management
      • Social Media Job Ads
    • Innovation
      • Customer relationship management (CRM)
      • Daily Process Automation
      • Email Automation
      • Leads Workflow Automation
      • AI Content Writing and Publishing
      • SMS Automation
  • Case studies
  • Contact
  • English
    • Română
    • English
Instant quote
Form Submission is restricted
Multumim pentru timpul acordat. Estimarea a fost trimisa deja pe adresa ta de email. Te rugam sa verifici si folderul Spam/Junk.

Alege servicii

Afla pretul intr-un minut

Alege serviciile de care esti interesat

Click pentru a alege
  • Dezvoltare web
  • Optimizare site (SEO)
  • Promovare online (PPC)
  • Solutii CRM
  • Solutii GDPR
 

Ai domeniu ?

Afla pretul intr-un minut

Ai deja un site?

Click pentru a alege
  • Click pentru a alege
  • Da
  • Nu
 

Nume domeniu

Afla pretul intr-un minut

Care este adresa site-ului?

 

Gazduire

Afla pretul intr-un minut

Ai nevoie de gazduire / domeniu?

Am deja alt furnizor
  • Alege servicii
  • Gazduire web
  • Nume domeniu
  • Ambele servicii
  • Am deja alt furnizor
 

Tip site

Afla pretul intr-un minut

Alege tipul site-ului tau

Alege tip site
  • Alege tip site
  • Site companie
  • Site personal
  • Magazin online
  • Blog
  • Forum
  • Portal
  • Altele
 

Numar pagini site

Afla pretul intr-un minut

Cate pagini va avea site-ul tau?

 

Ai continut

Afla pretul intr-un minut

Ai nevoie de continut pentru site?

Click pentru a alege
  • Click pentru a alege
  • Da
  • Nu
 

Optimizare Site

Afla pretul intr-un minut

Doresti optimizarea site-ul pentru toate dispozitivele?

Nu
  • Click pentru a alege
  • Da
  • Nu
 

Interfata administrare

Afla pretul intr-un minut

Doresti interfata de administrare pentru site?

Nu
  • Click pentru a alege
  • Da
  • Nu
 

Numar cuvinte cheie

Afla pretul intr-un minut

Cate cuvinte cheie doresti sa optimizezi?

 

On-Page SEO

Afla pretul intr-un minut

Doresti optimizare SEO On-Page?

On-page SEO include optimizarea elementelor de pe site-ul dvs. precum titlurile paginilor, meta descrierile, anteturile, imaginile și textul de ancorare.
Nu
  • Click pentru a alege
  • Da
  • Nu
 

Off-Page SEO

Afla pretul intr-un minut

Doresti optimizare SEO Off-Page?

Off-Page SEO se referă la toate procedurile care sunt efectuate în afara site-ului web pentru a-i îmbunătăți poziția în motoarelor de căutare.
Nu
  • Click pentru a alege
  • Da
  • Nu
 

SEO Tehnic

Afla pretul intr-un minut

Doresti SEO Tehnic?

Serviciul de SEO tehnic este un proces prin care puteți îmbunătăți vizibilitatea și performanța site-ului dumneavoastra web prin utilizarea de tactici și abordări tehnice.
Nu
  • Click pentru a alege
  • Da
  • Nu
 

SEO Local

Afla pretul intr-un minut

Doresti SEO Local?

Serviciile SEO locale sunt importante pentru întreprinderile mici si mijlocii care doresc să se asigure că sunt găsite de potențialii clienți din zona lor locală.
Nu
  • Click pentru a alege
  • Da
  • Nu
 

Content Writing

Afla pretul intr-un minut

Ai nevoie de servicii de Content Writing?

Echipa noastră de scriitori cu experiență are abilitățile și cunoștințele necesare pentru a crea conținut informativ și atractiv pentru utilizatorii site-ul tau.
Nu
  • Click pentru a alege
  • Da
  • Nu
 

Link building

Afla pretul intr-un minut

Ai nevoie de servicii de Link Building?

Construirea de linkuri este procesul de achiziționare de linkuri de la alte site-uri web către al tău acest lucru îmbunătățind clasamentul site-ului dvs. în motoarele de căutare.
Nu
  • Click pentru a alege
  • Da
  • Nu
 

Care este bugetul alocat campaniilor?

Afla pretul intr-un minut

Care este bugetul alocat campaniilor de marketing online?

 

Doresti grafica ?

Afla pretul intr-un minut

Doresti si grafica pentru anunturile tale?

Nu
  • Click pentru a alege
  • Da
  • Nu
 

Retelele de promovare

Afla pretul intr-un minut

Care sunt retelele pe care vrei sa te promovam?

Click pentru a alege
  • Google
  • Facebook
  • Bing
  • YouTube
 

Numar utilizatori

Afla pretul intr-un minut

Cati utilizatori vor folosi sistemul?

 

Doresti automatizari?

Afla pretul intr-un minut

Doresti automatizarea proceselor de lucru?

Nu
  • Click pentru a alege
  • Da
  • Nu
 

Doresti integrare telecom?

Afla pretul intr-un minut

Doresti integrarea de servicii de telecomunicatii (SMS,Apeluri)?

Nu
  • Click pentru a alege
  • Da
  • Nu
 

Servicii GDPR

Afla pretul intr-un minut

Generare si implementare solutii GDPR?

Nu
  • Click pentru a alege
  • Da
  • Nu
 

Afla pretul intr-un minut

Cine si unde trebuie sa primeasca estimarea?

Completeaza datele de contact si vei primi INSTANT pe adresa de email estimarea noastra de pret pentru serviciile mentionate in pasii anteriori.
 
Powered by ARForms  (Unlicensed)
Search
  • Home
  • About us
  • Services
    • Digital Marketing
      • Search Engine Optimisation (SEO)
      • Search Engine Marketing (SEM)
      • SEO Content Writing Services
      • Local SEO
      • Technical SEO
      • Link Building Services
      • PPC Advertising
      • Digital Marketing Strategy
    • Web Services
      • Web development
      • Custom Web Design
      • WordPress Web Design
      • eCommerce Web Design
      • GDPR Solutions
      • eMail Marketing Services
      • SMS Marketing Services
      • Website Hosting Services
    • Social Media Marketing
      • Social Media Brand Management
      • Social Media Advertising
      • Social Media Reputation Management
      • Social Media Job Ads
    • Innovation
      • Customer relationship management (CRM)
      • Daily Process Automation
      • Email Automation
      • Leads Workflow Automation
      • AI Content Writing and Publishing
      • SMS Automation
  • Case studies
  • Contact
  • English
    • Română
    • English
Step-by-Step Guide to Adding a New GTM Server Host in Ubuntu 22

Step-by-Step Guide to Adding a New GTM Server Host in Ubuntu 22

shiznit2024-03-06T15:18:14+00:00
shiznit Tutorials docker, gtm, server side tracking, ubuntu 0 Comments

Table of Contents

  • Step 1: Update DNS Configuration
  • Step 2: Stop Nginx
  • Step 3: Generate SSL Certificates
  • Step 4: Configure Nginx for your GTM server gtm.example.com
  • Step 5: Configure Nginx for gtmp.example.com
  • Step 6: Create Symbolic Links
  • Step 7: Restart Nginx
  • Step 8: Restart Docker on your new GTM server

Congratulations! You’ve about to unlock the potential of server-side tracking with GTM server. By following this comprehensive guide, you’ve accomplished the following:

  • Established a robust foundation: Your new GTM server on Ubuntu 22 is ready to empower your web analytics and marketing strategies.
  • Gained unparalleled control: You now have complete ownership over your data collection and processing, ensuring compliance and security.
  • Embraced enhanced privacy: By implementing server-side tracking, you’re mitigating risks associated with traditional client-side tracking and upholding GDPR regulations.
  • Unlocked limitless possibilities: With newfound flexibility, you can effortlessly implement custom tags and advanced configurations to tailor your tracking to your specific needs.

This achievement marks the beginning of an exciting journey. As you continue to explore the capabilities of GTM server and server-side tracking, you’ll be well-equipped to unlock a wealth of valuable insights and optimize your website’s performance.

Step 1: Update DNS Configuration

  1. Open your DNS management console or contact your DNS provider.
  1. Create two DNS records for the domains “gtm” and “gtmp” and point them to the IP address of your server
    • Create an “A” record for “gtm.example.com” with the IP address of your server
    • Create an “A” record for “gtmp.example.com” with the IP address of your server
  2. Save the DNS configuration.

Step 2: Stop Nginx

  1. Connect to your server via SSH or open a terminal.
  2. Execute the following command to stop the Nginx server:
sudo service nginx stop

Step 3: Generate SSL Certificates

  1. Make sure Nginx is stopped before generating the certificates.
  2. Execute the following command to generate SSL certificates for the domains:
sudo certbot certonly --standalone -d gtm.example.com,gtmp.example.com --agree-tos --register-unsafely-without-email

3. Wait for the certificate generation process to complete.

Step 4: Configure Nginx for your GTM server gtm.example.com

1. Change to the Nginx sites-available directory:

cd /etc/nginx/sites-available

2. Open the configuration file for “gtm.example.com” using the Nano text editor:

sudo nano gtm.example.com

3. Copy and paste the following configuration into the file:

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        server_name   gtm.example.com;
        gzip on;
        gzip_disable "msie6";
        gzip_min_length 100;

#### Lets Encrypt ACME Challenge
location ^~ /.well-known/acme-challenge/ {
  allow all;
  root /var/lib/letsencrypt/;
  default_type "text/plain";
  try_files $uri =404;
  }

#### Lets Encrypt ACME Challenge

#### Proxy to docker backend with GTM ####
location / {
   proxy_pass   http://localhost:8080;
   }

ssl_certificate /etc/letsencrypt/live/gtm.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/gtm.example.com/privkey.pem;

}

4. Save the file by pressing Ctrl + X, then Y, and finally Enter.

Step 5: Configure Nginx for gtmp.example.com

1. Create the configuration file for “gtmp.example.com” using the Nano text editor:

sudo nano gtmp.example.com

2. Copy and paste the following configuration into the file:

server {
        listen 443 ssl http2;
        listen [::]:443 ssl http2;
        server_name   gtmp.example.com;
        gzip on;
        gzip_disable "msie6";
        gzip_min_length 100;

#### Lets Encrypt ACME Challenge
location ^~ /.well-known/acme-challenge/ {
  allow all;
  root /var/lib/letsencrypt/;
  default_type "text/plain";
  try_files $uri =404;
  }

#### Lets Encrypt ACME Challenge

#### Proxy to docker backend with GTM ####
location / {
   proxy_pass   http://localhost:8079;
   }

ssl_certificate /etc/letsencrypt/live/gtm.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/gtm.example.com/privkey.pem;

}

3. Save the file by pressing Ctrl + X, then Y, and finally Enter.

Step 6: Create Symbolic Links

1. Create symbolic links for the configuration files in the sites-enabled directory:

cd /etc/nginx/sites-enabled/
sudo ln -s ../sites-available/gtm.example.com ./
sudo ln -s ../sites-available/gtmp.example.com ./

Step 7: Restart Nginx

1. Start the Nginx server using the following command:

sudo service nginx restart

Congratulations! You have successfully set up the server with Nginx and SSL certificates for the domains gtm.example.com and gtmp.example.com. Nginx will now serve the requests for these domains, proxying them to the specified backend services. The SSL certificates ensure secure communication over HTTPS.

Step 8: Restart Docker on your new GTM server

docker stop gtm-preview
docker stop gtm-live
docker start gtm-preview
docker start gtm-live

We’re also on Facebook! Like our page to stay up to date with all the news about our services. Don`t forget to check out our other blog articles here for more useful information.

5/5 - (3 votes)

Share this post

Facebook Twitter LinkedIn Google + Email

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Curiosity Corner

Whether you're seeking to understand the 'why' behind the 'what' or just looking to indulge your thirst for learning, this space is crafted for you.

Recent posts

  • How to Install an SSL Proxy Server on Linux with User Authentication November 13, 2024
  • SEO Optimization: Increase your online visibility and get results in 2024 February 29, 2024
  • What is an email marketing campaign and how can you run one February 27, 2024
  • How to run Google Ads campaigns: step-by-step guide February 1, 2024
  • N8N Workflows & Credentials Migration: Export & Import Tutorial January 15, 2024

automation container_config crm software docker email marketing email promo google ads google analytics 4 google seo google tag manager google tracking gtm gtm account improve form conversion manage business n8n n8n migration newsletter onpage seo pay per click plugin creation ppc ppc campaign proxy server ubuntu search engine optimization sem seo optimization seo tricks server side server side tracking setup campaigns ssl proxy server technical seo ubuntu ubuntu 22 website seo wordpress svn wp plugin

Business development solutions

Contact us

SEO, AdWords, Automatizari, Dezvoltare Web - Solutii simple pentru conexiuni complexe

Devsnit Ignited S.R.L., your ultimate destination for unparalleled digital marketing solutions. Attract, impress and convert more leads online and get results with Devsnit.

WhatsApp
+40 (750) 43 77 44
[email protected]
Str. Blaj, Nr. 6, 800472, Galati
Working hours

Mon - Fri | 09:00 - 16:00
Sat - Sun | INCHIS

Useful links

  • Contact us
  • Services
  • Privacy Policy
  • Terms and conditions
  • ANPC

©2023 DEVSNIT - Simple solutions, complex connections - All rights reserved

Calculeaza pret
Contact