Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the Fathom Analytics script when in production #44

Merged
merged 3 commits into from
Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
3d4d70ae2c2d95dc95183637707e7778ffafdc81
582596e4ee576abcadf48ea629d02e0dcedd6a42
2 changes: 1 addition & 1 deletion app/Models/Hit.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Hit extends Model
protected $fillable = ['endpoint', 'user_agent', 'referer', 'ip'];

/**
* @param string $period Available Options: millenium, century, decade,
* @param string $period Available Options: millenium, century, decade,
* year, quarter, month, week, day, weekday, hour,
* minute, second, microsecond
*/
Expand Down
4 changes: 4 additions & 0 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@

<link href="{{ mix('css/app.css') }}" rel="stylesheet">
@stack('scripts')

@if (app()->environment('production'))
<script src="https://cdn.usefathom.com/script.js" data-site="MKBAABBX" defer></script>
@endif
</head>
<body>
<div>
Expand Down