2 years ago I asked for a way to export all of my tags into a nice, neat .csv where I can browse my tag library without having to individually go from rule-to-rule. Well, I finally got fed up with waiting and now I’m building one. So far I’m able to spit out a list of all of the rules and their properties in a console.log. I’m also able to export the data into an extensionless “download” file. Right now it’s a very crude product and well in its infancy stage with the most difficult parts still ahead of me. Here’s an example of the DTM library – it’s the one my company is currently using. Everything is laid out pretty neatly.
The extension basically scans for some key terms by looking for some terms (one for Event rules, one for Page Load, another for Direct Call). It then assigns an index for each of those terms and grabs everything via a substring function. From there, the rules are parsed out with regular expressions (which is probably not the most sustainable method) and then formatted for a .csv file. I think I’m about 15% of the way through with the project – and that’s with only a few hours of focused work (I’m not the best coder).
Anyways, I’ll post updates as the project progresses.