👀 SEO and Tracking

Analytics & Tag Manager

Setting up Google Analytics and/or Tag Manager

Tag Manager vs Google Analytics

We typically want either GA or GTM. GTM allows the client to manage their own tags, including Google Analytics and any other 'pixels' or tracking snippets.

Google Tag Manager

To install Google Tag Manager, update ed.config.json to include the following:

{
  // ... other config
  "tracking": {
    "tagManagerID": "tag-manager-id-goes-here"
  }
}

Google Analytics

To install Google Analytics, update ed.config.json to include the following:

{
  // ... other config
  "tracking": {
    "ga": {
      "trackingID": "tracking-id-goes-here"
      "version": "3"  // Use "4" if the client is using Google Analytics v4
    }
  }
}