api-tools
api-tools copied to clipboard
Duplicating filters to another account
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?
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!
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.
In fact, I was able to update :) I simply incremented the ID with a new entry and filters have been created. Quiet Simple.