chore: Google Tag manager setup
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
2025-10-28 16:32:52 +05:45
parent 9c703306ec
commit dd99e66b10
4 changed files with 27 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use App\Models\carousel;
use App\Models\Carousel;
use Illuminate\Http\Request;
use Inertia\Inertia;
use Storage;

View File

@@ -4,7 +4,7 @@ namespace App\Http\Controllers\Client;
use App\Http\Controllers\Controller;
use App\Models\Carousel;
use App\Models\Faq;
use App\Models\FAQ;
use App\Models\Product;
use App\Models\Testimonial;
use Inertia\Inertia;

View File

@@ -13,7 +13,7 @@ return new class extends Migration {
Schema::create('faqs', function (Blueprint $table) {
$table->id();
$table->string("question");
$table->string('answer');
$table->longText('answer');
$table->timestamps();
});
}

View File

@@ -2,6 +2,26 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" @class(['dark' => ($appearance ?? 'system') == 'dark'])>
<head>
<!-- Google Tag Manager -->
<script>
(function(w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-TZ9NDP5Q');
</script>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -46,6 +66,10 @@
</head>
<body class="font-sans antialiased">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TZ9NDP5Q" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
@inertia
</body>