PHP code example of ezitisitis / laravel-social-trackers

1. Go to this page and download the library: Download ezitisitis/laravel-social-trackers library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ezitisitis / laravel-social-trackers example snippets


'google_tag_manager_id' => env('GOOGLE_TAG_MANAGER_ID'),
blade
<head>
    ...
    {{\Ezitisitis\LaravelTracking\Tracker::googleTagManager()}}
    ...
</head>
<body>
    {{\Ezitisitis\LaravelTracking\Tracker::googleTagManagerNoScript()}}
    ...
</body>