irazasyed / laravel-gamp

📊 Laravel Google Analytics Measurement Protocol Package
https://bit.ly/laravel-gamp
MIT License
332 stars 33 forks source link

How to send custom dimensions/metrics data? #9

Closed gradosevic closed 8 years ago

gradosevic commented 8 years ago

I'm sending something like this, but don't get any custom data sent. What am I missing here?

        $gamp = GAMP::setClientId( '123456' );
        $gamp->setDocumentPath( '/test' );
        $gamp->setIpOverride('123.123.123.123');
        $gamp->setCustomDimension('4',1);
        $gamp->setCustomDimension('5',2);
        $gamp->setCustomMetric('6',1);
        $gamp->setCustomMetric('7',2);
        $gamp->sendPageview();
irazasyed commented 8 years ago

Unfortunately, I don't really know. Since this is simply a bridge for the ICONIC library. Only they can probably help you. I noticed you already tried to reach them and the ticket is in progress?

https://github.com/theiconic/php-ga-measurement-protocol/issues/14

I'm closing this ticket for now.

gradosevic commented 8 years ago

Thanks for the explanation. I'm still waiting for an answer from authors.

irazasyed commented 8 years ago

No problem. I'll keep an eye on the other issue ticket. If there's anything I can do from my end. Please do create a new ticket and I'll handle that.