add google analytics to website laravel
@if(\Settings::get('google_analytics_id'))
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async
src="https://www.googletagmanager.com/gtag/js?id={{ \Settings::get('google_analytics_id') }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', "{{ \Settings::get('google_analytics_id') }}");
</script>
@endif
Also in PHP:
- __PHP_Incomplete_Class
- compile php 7.4 from source in ubuntu 20
- /phpspreadsheet 1.15.0 requires ext-dom * centos yum
- base64 to image
- encode image to base64 php
- _______ is used to execute laravel project
- create date from string php
- date plus 7 days php
- android studio clear cache
- codeigniter form_validation email
- année en php
- base decode php
- check laravel version
- array empty check in php
- codeigniter insertID
- clear all cache laravel
- client_ip() function php
- find part of a string in a string php
- exceptions php
- ext-dom ubuntu 20.04
- check the value type in php
- aws sdk php
- date time with am pm in php
- capitalized string in php