-
What is causing the exception in the GA4 API dimensionFilter for Expect integer error?
“Hey, I’m trying to sort out a way to find the most visited sites which includes ‘my/path’. I’ve been attempting to add a filter to this request. Everything runs smoothly until I add this filter. It throws out an error that says ‘Expect integer’. I’m sharing my filter below:
`php
‘dimensionFilter’ => new FilterExpression([
‘filter’ => new Filter([
‘field_name’ => ‘fullPageUrl’,
‘string_filter’ => new StringFilter([
‘value’ => ‘my/path’,
‘match_type’ => ‘CONTAINS’
])
])
])
`
Do you have any idea what I might be missing here?”
Log in to reply.