Even though the network tabs display that analytics _collect_ ping is sent and is successful(200 OK), this event is not visible in Google analytics report.
On the same Google Analytics config, _scroll event_ which sends integer values is immediately visible in Google Analytics dashboard. _Social Interactions_ works fine too!
PS: I have also added some _custom dimensions_ for AMP. But they are all same for other triggers such as social, pageview and event.
Aptly modified samples from Adding Analytics to your AMP pages
specifically at outbound link tracking section
I discovered two conflicting documentation in this regard
Field Name | Protocol Parameter | Value Type | Default Value | Max Length | Supported Hit Types
------------ | -------------|------------ | -------------|------------ | -------------
eventValue | ev | integer| None | None | event
Value | Type | Required | Description
------------ | -------------|------------ | -------------
eventValue | string | no | _A numeric value associated with the event (e.g. 42). Defaults to 0._ :exclamation:
with string sample demonstrated here
You are correct, eventValue is an integer according to GA, so the amp-analytics docs and sample code need to be updated.
/to @bpaduch
Thanks @kschmidtdev for suggesting the use of eventLabel as a workaround for now.
cc @avimehta
Most helpful comment
Docs corrected at https://developers.google.com/analytics/devguides/collection/amp-analytics/.