Skip to content

Commit

Permalink
setup ga
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed May 26, 2023
1 parent 0dac489 commit b099020
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions config/larachain.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

return [
'google_analytics' => env('GOOGLE_ANALYTICS', false),
'sources' => [
'web_file' => [
'name' => 'Web File Source Type',
Expand Down
10 changes: 2 additions & 8 deletions resources/js/Pages/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@
</div>
</div>

<!-- Mobile menu, show/hide based on menu state. -->
<div class="sm:hidden" id="mobile-menu">
<div class="space-y-1 pb-4 pt-2">
<!-- Current: "bg-indigo-50 border-indigo-500 text-indigo-700", Default: "border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700" -->
<Link :href="route('login')" class="block border-l-4 border-indigo-500 bg-indigo-50 py-2 pl-3 pr-4 text-base font-medium text-indigo-700">Login</Link>
</div>
</div>

</nav>

<div class="bg-white py-10 sm:py-12">
Expand All @@ -46,7 +40,7 @@
</p>
</div>
</div>
<div class="flex justify-center gap-8 mt-4 items-center text-xl max-w-7xl mx-auto">
<div class="flex sm:flex-row flex-col justify-center gap-8 mt-4 items-center text-xl max-w-7xl mx-auto">
<div class="flex justify-start gap-2 items-center">
💪
<a class="underline" href="https://github.com/alnutile/larachain">OpenSource </a><ArrowTopRightOnSquareIcon class="text-gray-500 w-4"/></div>
Expand Down
17 changes: 16 additions & 1 deletion resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title inertia>{{ config('app.name', "LaraChain 🚀") }}</title>
<title>Laravel and Large Language Models (LLM) </title>
<meta name="description" content="LaraChain offers a pluggable framework for communicating with Large Language Models (LLM) from Google, OpenAI, Azure, Hugging Face, and more using the power of Laravel.">
<meta name="keywords" content="ChatGPT, OpenAI, Laravel, Large Language Models, LLM, Google, OpenAI, Azure, Hugging Face, Horizon, Events, Facades, Tailwind, Inertia, JetStream, LaraChain, PHP, Project-Centric Data Storage, Team-Level Permissions, APIs, ChatGPT Plugins">

<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
Expand All @@ -17,5 +19,18 @@
</head>
<body class="font-sans antialiased">
@inertia


@if(config('larachain.google_analytics'))
<script async src="https://www.googletagmanager.com/gtag/js?id={{config('larachain.google_analytics')}}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{config('larachain.google_analytics')}}');
</script>
@endif

</body>
</html>

0 comments on commit b099020

Please sign in to comment.