api-tools icon indicating copy to clipboard operation
api-tools copied to clipboard

Duplicating filters to another account

Open palbertus opened this issue 7 years ago • 3 comments

Exported filters from one account (List) and then changed the account Id with another existing and updated (Update). None from filters did show up in the new account. Same process with removing the ID. Did I missed something?

palbertus avatar Oct 04 '17 08:10 palbertus

Agree - this functionality SIMPLY DOES NOT WORK!

The author should stop falsely advertising this add-on as a solution for copying filters across accounts until it actually works!

pakachoag avatar Jan 02 '18 16:01 pakachoag

I believe this is because the script only updates existing filters based on the "filter ID" column: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/filters/update The add-on does not have the functionality to create new filters. For that you may need to add to the code as per this link: https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/filters/insert I would imagine it becomes a bit tricky to write the code when there are dependencies on Property level custom dimensions where you have to write the filter to a GA View as opposed to an account.

NickGuebhard avatar Feb 03 '18 12:02 NickGuebhard

In fact, I was able to update :) I simply incremented the ID with a new entry and filters have been created. Quiet Simple.

palbertus avatar Mar 09 '18 10:03 palbertus