Not released yet. PeltyCMS is under development and not released yet; these docs describe the upcoming release and may change.
PeltyCMS Developer docs
User docsDevelopers
v0.1.0

Developer docs/Bundled addons

Google Analytics 4

Google Analytics 4 (server-side Measurement Protocol)

FieldValue
Addon idintegration-google-analytics
Kindintegration
Providesgoogle_analytics
Enginewasm
ABI0.2.0
Version0.1.0
AuthorMythicalSystems
Sourceextensions/addons/google-analytics
Permissions (shown at install)network.outbound

#Capabilities

CapabilityValue
eventsorder.created, invoice.paid, user.registered
httpwww.google-analytics.com
secretsapi_secret

#Events and hooks

WhatValue
Listens to (events)order.created, invoice.paid, user.registered
Hooksnone
Emitsnone
Mixinsnone
Scheduled jobsnone

#Settings and secrets

SettingTypeRequired
measurement_idtextyes
api_secretsecretyes

Secrets (stored encrypted, never returned by the API): api_secret.

Outbound HTTP allowed to: www.google-analytics.com. $server is the hostname of the server configured for the product, $setting:<key> the host of that setting.

#addon.json

extensions/addons/google-analytics/addon.jsonJSON
{
  "abi": "0.2.0",
  "author": "MythicalSystems",
  "capabilities": {
    "events": [
      "order.created",
      "invoice.paid",
      "user.registered"
    ],
    "http": [
      "www.google-analytics.com"
    ],
    "secrets": [
      "api_secret"
    ]
  },
  "description": "addons.desc.integration.google_analytics",
  "engine": "wasm",
  "id": "integration-google-analytics",
  "kind": "integration",
  "name": "Google Analytics 4",
  "permissions": [
    "network.outbound"
  ],
  "provides": "google_analytics",
  "settings": [
    {
      "key": "measurement_id",
      "kind": "text",
      "label": "Measurement ID (G-XXXXXXX)",
      "required": true
    },
    {
      "key": "api_secret",
      "kind": "secret",
      "label": "Measurement Protocol API secret",
      "required": true
    }
  ],
  "version": "0.1.0",
  "wasm": "addon.wasm"
}