The themeconfig.json file is used to add Google Analytics to your Magellan site.
- Follow these instructions from Google: Set up Analytics for a website and/or app.
- When adding your data stream, select Web.
- Enter your book URL in the Website URL field.
- After you’ve clicked Create Stream, your web stream details will display on screen.
- Copy your Measurement ID (G-XXXXXXXXXX). You’ll paste this ID into your themeconfig.json file later.
- When adding your data stream, select Web.
- Open Files from the Primary navigation.
- Go to <your theme name> top-level folder.
- Open your themeconfig.json file in a text editor.
- Add the following code to your file.
- In the first object, copy and paste this code and replace the G-XXXXXXXXXX with your Measurement ID:
“analyticsGA4ID” : “<G-XXXXXXXXXX>”,
- In the config object, copy and paste this code:
"googleAnalytics": {
"defaultValue": true
},
- Save your themeconfig.json file and reupload it.