CoolCMS API

GoogleAnalyticsConnection
in package
implements ConnectionTypeInterface

FinalYes

Google Analytics 4 — the measurement id (`G-…`) for the consent-gated gtag snippet in the page head.

Table of Contents

Interfaces

ConnectionTypeInterface
A kind of external connection the system knows how to use (reCAPTCHA, maps…).

Constants

CODE  : string = 'google_analytics'
FIELD_MEASUREMENT_ID  : string = 'measurementId'

Methods

check()  : ConnectionCheck|null
Verifies the given values against the third party. Null = this type cannot be verified remotely.
getCode()  : string
Stable identifier stored in `cms_system_external_connections.type`.
getFields()  : array<int, ConnectionField>
getGroup()  : string|null
Connections of the same group are alternatives (e.g. `captcha`: reCAPTCHA v2 or v3) — only one of them should be enabled. Null = independent connection.
supportsCheck()  : bool
Can the credentials be verified remotely? Decides whether the administration offers the check.

Constants

Methods

getCode()

Stable identifier stored in `cms_system_external_connections.type`.

public getCode() : string
Return values
string

getGroup()

Connections of the same group are alternatives (e.g. `captcha`: reCAPTCHA v2 or v3) — only one of them should be enabled. Null = independent connection.

public getGroup() : string|null
Return values
string|null

supportsCheck()

Can the credentials be verified remotely? Decides whether the administration offers the check.

public supportsCheck() : bool
Return values
bool
On this page

Search results