I code my click event in my Angular like below:
onProductClicked() {
(<any>window).ga('send', 'event', {
eventCategory: 'Click',
eventLabel: this.item.provider,
eventAction: 'click-on-product',
eventValue: this.item.price + "~" + this.item.name
});
}
And the above event triggers below request on my Chrome console:
My question is, why the above event didn't captured in my Event dashboard in Google analytic dashboard?
Is there anything that I missed?
It's not showing because the hit being sent is not valid, since the expected value type for Event Value (ev) is integer, not string.
Taken from Measurement Protocol's Parameter Reference for ev:
+-----------+------------+---------------+------------+---------------------+
| Parameter | Value Type | Default Value | Max Length | Supported Hit Types |
+-----------+------------+---------------+------------+---------------------+
| ev | integer | None | None | event |
+-----------+------------+---------------+------------+---------------------+
I would suggest to make the necessary modification, and try to send a hit via Hit Builder to make sure everything works.