PHP code example of justinholtweb / craft-telescope

1. Go to this page and download the library: Download justinholtweb/craft-telescope 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/ */

    

justinholtweb / craft-telescope example snippets


return [
    '*' => [
        'authMode' => 'oauth',
        'clientId' => '$GOOGLE_ANALYTICS_CLIENT_ID',
        'clientSecret' => '$GOOGLE_ANALYTICS_CLIENT_SECRET',
        'refreshToken' => '$GOOGLE_ANALYTICS_REFRESH_TOKEN',
        'propertyId' => '123456789',
        'sitePropertyIds' => [
            'shop' => '987654321',
        ],
        'siteRefreshTokens' => [
            'shop' => '$GOOGLE_ANALYTICS_SHOP_REFRESH_TOKEN',
        ],
    ],
];