What is Trackingplan
The Trackingplan Way
Getting Started
Inside Trackingplan
How toâŠ
Others
Export/Import JSON schemas
Not in the mood to read all the steps? Watch this quick video to see how to export and import your schemas in just a few clicks. For more video tutorials, check out Trackingplan Academy.
Export JSON schema
To export your schemas in JSON format, follow these steps:
- Open the export menu youâll find at the top right of any of your destinations. For this example in particular, weâll illustrate it by exporting Googleâs Analytics 4 setup. Then, click on âJSON Schemaâ as seen in the picture below.
- Now itâs time to select all the events and properties youâd like to export. By default, Trackingplan will select them all, but you have the possibility to uncheck those you don't want. You can also click on "clear all" to start afresh and only mark those events and properties that interest you.
- Once you've completed your selection, you can choose between copying your schema to the clipboard to paste it into a file, or downloading it as a file to open directly. Just click on the option you prefer and⊠all set! With this, you'll be able to view all the schemas from the providers you want, and for the events you want.
Import JSON schema
Now, for importing your JSON schema to other plans (iOS, Android, web) or even to other destinations within the same plan, replicating the setup of your events while maintaining the same rules and specifications across various panels or providers, follow these easy steps:
- Open the export menu and click on âImport JSON Schemaâ as seen in the picture below.
- Drag and drop the file containing the schemas youâve just exported, or click on it to select directly from your files. We'll notify you if the file is invalid or if you've made any errors editing it. Don't worry, we'll indicate where and why so you can easily correct it.
- Now itâs your time to select all the events and properties youâd like to import. If you want to replicate your whole setup, click on âSelect allâ. If not, just click on the events and properties you want until your selection is completed.
Advanced Settings
Finally, before importing, take a moment to check out the Advanced options. These options give you finer control over how your schema is applied and how it interacts with your existing plan.
Hereâs what each option does:
- Forbid other properties and auto-forbid new ones: This ensures that only the properties explicitly defined in your schema that you want to export are allowed. Any existing or new properties that donât match your schema will automatically be marked as forbidden.
- Keep existing descriptions: Preserve the descriptions of events and properties that already exist in your plan.
- Reuse existing enums and regexes: Automatically link imported properties to any matching enums or regex rules already defined in your plan.
- Clear the destination before importing: Delete all existing events in the destination before applying the new schema.
Use case: This is particularly useful when you want to enforce strict compliance with your schema and prevent accidental tracking of unsupported properties.
Use case: Ideal when your plan already contains detailed documentation or notes about events, ensuring that importing a new schema doesnât overwrite valuable information.
Use case: This reduces duplication and ensures consistency, so you donât accidentally create multiple versions of the same validation rules.
Use case: This reduces duplication and ensures consistency, so you donât accidentally create multiple versions of the same validation rules.
Important: This action is irreversible. Only use it if you want to start completely fresh in the destination environment.
Once youâve gone through all the advanced options and selected everything you need, click Import to bring your schema in.
â Previous
Next â