ipunkt / laravel-analytics

Analytics tracking package for Laravel
MIT License
263 stars 54 forks source link

Changing anaalytics id dynamicaly #66

Closed Sadicko closed 4 years ago

Sadicko commented 4 years ago

Is there a way to change the analytics id dynamically? In my application, users can add their tracking id which changes when the item being with on the page belongs to them.

rokde commented 4 years ago

You just have to use setTrackingId($trackingId) on the tracking provider instance.