https://github.com/marcosvrs/gtmplant
GTM to PlantUML
https://github.com/marcosvrs/gtmplant
diagram google google-tag-manager gtm manager plantuml tag tag-manager
Last synced: over 1 year ago
JSON representation
GTM to PlantUML
- Host: GitHub
- URL: https://github.com/marcosvrs/gtmplant
- Owner: marcosvrs
- License: gpl-3.0
- Created: 2019-05-23T19:35:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T22:30:43.000Z (over 3 years ago)
- Last Synced: 2025-03-05T01:06:48.184Z (over 1 year ago)
- Topics: diagram, google, google-tag-manager, gtm, manager, plantuml, tag, tag-manager
- Language: TypeScript
- Size: 687 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gtmplant
GTM to PlantUML
Will convert a export GTM container file to a PlantUML file.
## Usage
### Install
```shell
npm install --global gtmplant
```
### Generate image file (svg or png)
> Internet connection is required
```shell
gtmplant --input test/data/cookiebotGDPRConsentRecipe.json --output test/data/cookiebotGDPRConsentRecipe.svg
gtmplant --input test/data/cookiebotGDPRConsentRecipe.json --output test/data/cookiebotGDPRConsentRecipe.png
```
### Generate puml file
```shell
gtmplant --input test/data/cookiebotGDPRConsentRecipe.json --output test/data/cookiebotGDPRConsentRecipe.puml
```
## Options
You can personalize your output, using the following options, to choose which component and/or usage you want to output.
If no component/usage is choose, all components/usages are outputed.
For example:
```
gtmplant --input test/data/cookiebotGDPRConsentRecipe.json --tags --variables --usages
```
Will output all Tags, Variables and the usage between them.
```
gtmplant --input test/data/cookiebotGDPRConsentRecipe.json
```
Will output all Tags, Triggers, Variables and the usage between them.
### -i, --input
Define the path of the exported GTM container file (JSON)
### -o, --output
Define the path of the output file. If not defined, it'll output on the STDOUT
### -T, --tags
Convert tags
### -R, --triggers
Convert triggers
### -A, --variables
Convert variables
### -U, --usages
Generate usages