An open API service indexing awesome lists of open source software.

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

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