Erro no rastreamento do Mautic 4.4

Fala pessoal, tudo certo?

Estou tentando usar o script de rastreamento do mautic, mas ele está mostrando 404. Fiz a instalação limpa da versão 4.4.13.

Esse arquivo:

https://marketing.grupowisedata.com/mtc.js

Ao tentar acessar, diz que não existe, e quando abro o meu site:
https://www.wisedatamarketing.com.br/
Também diz 404

Não estou usando docker nem portainer, usei o instalador web.
Estou usando nginx.
PS: Instalação zerada do Mautic

Fiz um teste e vi um erro na instalação do SSL.
Como fez a instalação do SSL no marketing.grupowisedata.com?

Estava normal, talvez você acessou bem no momento que desativei para testar se era isso. Eu instalei no cloudpanel e o SSL já fica ativado com a Cloudflare.
Agora voltei o SSL, mas continua 404.

Chegou a fazer a configuração do vhosts seguindo esta aula?

Durante a instalação, utilizou a Vhosts do Mautic 5?

Tenta substituir seu Vhosts por este abaixo:

server {
  listen 80;
  listen [::]:80;
  listen 443 quic;
  listen 443 ssl;
  listen [::]:443 quic;
  listen [::]:443 ssl;
  http2 on;
  http3 off;
  {{ssl_certificate_key}}
  {{ssl_certificate}}
  server_name marketing.grupowisedata.com;
  {{root}}

  {{nginx_access_log}}
  {{nginx_error_log}}

  if ($scheme != "https") {
    rewrite ^ https://$host$request_uri permanent;
  }

  location ~ /.well-known {
    auth_basic off;
    allow all;
  }

  {{settings}}
  
  rewrite ^/index.php/(.*) /$1 permanent;

  location ~ ^/(config|tmp|core|lang) {
    return 403;
  }

  location ~ /.ht {
    return 403;
  }

  location ~ (.*).gif {
    try_files $uri /index.php?$args;
  }

  location ~ (.*).js {
    try_files $uri /index.php?$args;
  }
 
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Permitted-Cross-Domain-Policies master-only;
add_header Referrer-Policy same-origin;
add_header alt-svc 'h3=":443"; ma=86400';

  try_files $uri $uri/ /index.php?$args;
  index index.php index.html;

  location ~ \.php$ {
    include fastcgi_params;
    fastcgi_intercept_errors on;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    try_files $uri =404;
    fastcgi_read_timeout 3600;
    fastcgi_send_timeout 3600;
    fastcgi_param HTTPS $fastcgi_https;
    fastcgi_pass 127.0.0.1:{{php_fpm_port}};
    fastcgi_param PHP_VALUE "{{php_settings}}";
  }

  location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf)$ {
    add_header Access-Control-Allow-Origin "*";
    add_header alt-svc 'h3=":443"; ma=86400';
    expires max;
    access_log off;
  }

  if (-f $request_filename) {
    break;
  }
}
1 curtida

Não segui a aula. Vou substituir o Vhosts. Jaja retorno se funcionou. Obrigado por enquanto

Aparentemente funcionou, pois parou de ter error 404 no console do meu site, agora retorna o código de sucesso, o 200.
Mas ao tentar acessar a URL do arquivo direto https://marketing.grupowisedata.com/mtc.js
Ainda não abre. Normal?

Pelo teste que fiz aqui abriu normalmente.
Tenta outro navegador.

1 curtida

Agora foi mesmo Gabriel. Muito obrigado pela ajuda, tudo 100% agora.

1 curtida