You are here

interface GoogleAnalyticsInterface in Google Analytics 4.x

Provides an interface.

Hierarchy

Expanded class hierarchy of GoogleAnalyticsInterface

All classes that implement GoogleAnalyticsInterface

2 files declare their use of GoogleAnalyticsInterface
GoogleAnalyticsAccounts.php in src/Helpers/GoogleAnalyticsAccounts.php
GoogleAnalyticsAdminSettingsForm.php in src/Form/GoogleAnalyticsAdminSettingsForm.php

File

src/GoogleAnalyticsInterface.php, line 8

Namespace

Drupal\google_analytics
View source
interface GoogleAnalyticsInterface {

  /**
   * Define the default file extension list that should be tracked as download.
   */
  const GOOGLE_ANALYTICS_TRACKFILES_EXTENSIONS = '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip';

  /**
   * Define the Acceptable GA ID Patterns
   */
  const GOOGLE_ANALYTICS_GTAG_MATCH = '/(?:UA|G|AW|DC)-[0-9a-zA-Z]{5,}(?:-[0-9]{1,})?/';

  /**
   * Define the Acceptable tracking ID patterns
   */
  const GOOGLE_ANALYTICS_TRACKING_MATCH = '/(?:UA|G)-[0-9a-zA-Z]{5,}(?:-[0-9]{1,})?/';

}

Members

Namesort descending Modifiers Type Description Overrides
GoogleAnalyticsInterface::GOOGLE_ANALYTICS_GTAG_MATCH constant Define the Acceptable GA ID Patterns
GoogleAnalyticsInterface::GOOGLE_ANALYTICS_TRACKFILES_EXTENSIONS constant Define the default file extension list that should be tracked as download.
GoogleAnalyticsInterface::GOOGLE_ANALYTICS_TRACKING_MATCH constant Define the Acceptable tracking ID patterns