theiconic / php-ga-measurement-protocol

Send data to Google Analytics from the server using PHP. Implements GA measurement protocol.
MIT License
655 stars 136 forks source link

Problem with sending custom events #69

Open Roman9961 opened 5 years ago

Roman9961 commented 5 years ago
$this->get('gamp.analytics')
            ->setEventCategory('authorization')
            ->setEventAction('Authorization')
           ->setDocumentLocationUrl('/')
            ->sendEvent();
{
hitParsingResult: [
{
valid: true,
parserMessage: [
{
messageType: "INFO",
description: "IP Address from this hit was anonymized to 46.30.167.0.",
messageCode: "VALUE_MODIFIED"
}
],
hit: "/debug/collect?v=1&tid=UA-109724385-2&aip=0&uip=127.0.0.1&ua=Mozilla%2F5.0%20%28X11%3B%20Linux%20x86_64%29%20AppleWebKit%2F537.36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F70.0.3538.110%20Safari%2F537.36&cid=103528305.1546594228&ec=authorization&ea=Authorization&dl=%2F&t=event?_anon_uip=127.0.0.0"
}
],
parserMessage: [
{
messageType: "INFO",
description: "Found 1 hit in the request."
}
]
}

but nothing appear in dashboard

Mehrdad-Dadkhah commented 4 years ago

same problem

alberto-bottarini commented 4 years ago

I think you are using debug mode