Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaGlobalSiteTag

Returns a new instance of GoogleAnalyticsAdminV1alphaGlobalSiteTag.



1315
1316
1317
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1315

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

Output only. Resource name for this GlobalSiteTag resource. Format: properties/ property_id/dataStreams/stream_id/globalSiteTag Example: "properties/123/ dataStreams/456/globalSiteTag" Corresponds to the JSON property name

Returns:

  • (String)


1307
1308
1309
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1307

def name
  @name
end

#snippetString

Immutable. JavaScript code snippet to be pasted as the first item into the head tag of every webpage to measure. Corresponds to the JSON property snippet

Returns:

  • (String)


1313
1314
1315
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1313

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1320
1321
1322
1323
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 1320

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @snippet = args[:snippet] if args.key?(:snippet)
end