Google Analytics Admin V1alpha API - Class Google::Analytics::Admin::V1alpha::GlobalSiteTag (v0.11.0)

Reference documentation and code samples for the Google Analytics Admin V1alpha API class Google::Analytics::Admin::V1alpha::GlobalSiteTag.

Read-only resource with the tag for sending data from a website to a DataStream. Only present for web DataStream resources.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#name

def name() -> ::String
Returns
  • (::String) — Output only. Resource name for this GlobalSiteTag resource. Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example: "properties/123/dataStreams/456/globalSiteTag"

#snippet

def snippet() -> ::String
Returns
  • (::String) — Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.

#snippet=

def snippet=(value) -> ::String
Parameter
  • value (::String) — Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.
Returns
  • (::String) — Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure.