Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Troubleshooting Duplicate Column Error in GA4 Property Filter with Google Analytics Data API in R › Reply To: Troubleshooting Duplicate Column Error in GA4 Property Filter with Google Analytics Data API in R
-
You seem to have built your data frame correctly, but the problem appears when setting up the dimension filter. The “data” in “data has to be uniquely named” refers to the data input used in the dimension filter. You’ve specified ‘city’ twice in the filter which the function doesn’t like. Try altering the syntax, possibly by using a different function or encapsulating the two cities in a single command.