Working Demo - https://scrubbygtm.netlify.com/
- Export your container
- Drop json file below
- Import downloaded file to GTM > Overwrite
v0.0.1 - Scrubs a GTM export to only include currently used Tags, Triggers and Variables. Paused tags and their referred triggers and variables are binned. A perfect alternative for when you inherit a bag of mess and need to put some man-hours in because nuking from orbit isn't an option. Sing like no one is listening ๐
git clone https://github.com/dougwithseismic/scrubby_gtm.git scrubby_gtm
- Install -
Yarn
- Export GTM Container from tagmanager.google.com > Admin > Export Container
- Replace contents of IMPORT_ME.json with Json found in your export.
- Run Scrubby -
yarn start
- Import newly generated gtmScrub_[TIMESTAMP].json from root directory into Tag Manager (Admin > Import Container > Overwrite)