Google Analytics Exclude Filter
I'm working with a very large data set where most of the data is not tied to a GA Campaign. In order to reduce the amount of data I'm working with, I'd like to filter out all rows that do not have the value "(not set)".
My current formula:
"
{
"dimensionFilterClauses": [
{
"filters": [
{
"dimensionName": "ga:campaign",
"operator": "EXACT",
"expressions": [
"(not set)"
]
}
]
}
]
}
"
I've tried replacing "EXACT" with everything that I can think of to exclude it including: "EXCLUDE", "NOTEQUAL", "NOT_EQUAL", "DOES_NOT_EQUAL", "NOT_EQUAL_TO", "!=", "DOES NOT MATCH", "DOES_NOT_MATCH", "DOES_NOT_CONTAIN", "DOES NOT CONTAIN".
None of these seem to work. Each time I get the same error:
"Domo is ready, but Domo received an error requesting the data. (Bad/Malformed Request). Invalid value at 'report_requests[0].dimension_filter_clauses[0].filters[0].operator' (type.googleapis.com/google.analytics.reporting.v4.DimensionFilter.Operator), "EXCLUDE""
Best Answer

Thankfully, one of my developers was able to help me out. Here's the solution:
""not": "true"," has to go exactly before "operator":
{
"dimensionFilterClauses": [
{
"filters": [
{
"dimensionName": "ga:campaign", "not": "true",
"operator": "EXACT",
"expressions": [
"(not set)"
]
}
]
}
]
}
0
Answers

Thankfully, one of my developers was able to help me out. Here's the solution:
""not": "true"," has to go exactly before "operator":
{
"dimensionFilterClauses": [
{
"filters": [
{
"dimensionName": "ga:campaign", "not": "true",
"operator": "EXACT",
"expressions": [
"(not set)"
]
}
]
}
]
}
0
Categories
 All Categories
 1.2K Product Ideas
 1.2K Ideas Exchange
 1.3K Connect
 1.1K Connectors
 273 Workbench
 2 Cloud Amplifier
 3 Federated
 2.7K Transform
 78 SQL DataFlows
 525 Datasets
 2.1K Magic ETL
 2.9K Visualize
 2.2K Charting
 435 Beast Mode
 22 Variables
 513 Automate
 115 Apps
 390 APIs & Domo Developer
 8 Workflows
 26 Predict
 10 Jupyter Workspaces
 16 R & Python Tiles
 332 Distribute
 77 Domo Everywhere
 255 Scheduled Reports
 66 Manage
 66 Governance & Security
 1 Product Release Questions
 Community Forums
 40 Getting Started
 26 Community Member Introductions
 68 Community Announcements
 4.8K Archive