jeffersongoncalves/laravel-adobe-analytics
Integrate Adobe Analytics into Laravel with a simple, configurable package for sending tracking data and events from your application. Streamline setup, manage credentials, and keep analytics calls clean with an easy-to-use API.
composer require vendor/adobe-analytics-laravel
php artisan vendor:publish --tag="adobe-analytics-config"
.env:
ADOBE_ANALYTICS_CLIENT_ID=
ADOBE_ANALYTICS_CLIENT_SECRET=
ADOBE_ANALYTICS_ORG_ID=
# Optional for local smoke tests only:
ADOBE_ANALYTICS_ACCESS_TOKEN=
use Vendor\AdobeAnalytics\Facades\AdobeAnalytics;
$suites = AdobeAnalytics::reportSuites()->list();
$report = AdobeAnalytics::reports()->run([
'rsid' => 'my-report-suite',
'dimension' => 'variables/page',
'metrics' => ['metrics/visits'],
'dateRange' => 'last7Days',
]);
config/adobe-analytics.php for credentials, cache store, token TTL, HTTP timeout, and static-token override.AnalyticsReportService, so controllers and jobs do not know Adobe-specific payload details.run() returns data immediately. Check whether the package polls for you; if not, implement polling with exponential backoff and a hard timeout.variables/page, metrics look like metrics/visits, and report suites use IDs rather than display names. Build a cached mapping layer from discovery endpoints.403. After changing Adobe IMS permissions, clear the cached token; otherwise you may keep using a token issued before the permission change.429 responses with Retry-After and jittered backoff. Avoid launching many report runs in parallel; Adobe rate limits can affect all jobs using the same credentials.last7Days are evaluated in Adobe’s context..env values, run php artisan config:clear. In production, ensure php artisan config:cache still receives credentials through config files, not direct env() calls outside config.How can I help you explore Laravel packages today?