Class: Google::Apis::AnalyticsreportingV4::GoalData

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

Overview

Represents all the details pertaining to a goal.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoalData

Returns a new instance of GoalData.



727
728
729
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 727

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

Instance Attribute Details

#goal_completion_locationString

URL of the page where this goal was completed. Corresponds to the JSON property goalCompletionLocation

Returns:

  • (String)


690
691
692
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 690

def goal_completion_location
  @goal_completion_location
end

#goal_completionsFixnum

Total number of goal completions in this activity. Corresponds to the JSON property goalCompletions

Returns:

  • (Fixnum)


695
696
697
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 695

def goal_completions
  @goal_completions
end

#goal_indexFixnum

This identifies the goal as configured for the profile. Corresponds to the JSON property goalIndex

Returns:

  • (Fixnum)


700
701
702
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 700

def goal_index
  @goal_index
end

#goal_nameString

Name of the goal. Corresponds to the JSON property goalName

Returns:

  • (String)


705
706
707
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 705

def goal_name
  @goal_name
end

#goal_previous_step1String

URL of the page one step prior to the goal completion. Corresponds to the JSON property goalPreviousStep1

Returns:

  • (String)


710
711
712
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 710

def goal_previous_step1
  @goal_previous_step1
end

#goal_previous_step2String

URL of the page two steps prior to the goal completion. Corresponds to the JSON property goalPreviousStep2

Returns:

  • (String)


715
716
717
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 715

def goal_previous_step2
  @goal_previous_step2
end

#goal_previous_step3String

URL of the page three steps prior to the goal completion. Corresponds to the JSON property goalPreviousStep3

Returns:

  • (String)


720
721
722
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 720

def goal_previous_step3
  @goal_previous_step3
end

#goal_valueFloat

Value in this goal. Corresponds to the JSON property goalValue

Returns:

  • (Float)


725
726
727
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 725

def goal_value
  @goal_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



732
733
734
735
736
737
738
739
740
741
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 732

def update!(**args)
  @goal_completion_location = args[:goal_completion_location] if args.key?(:goal_completion_location)
  @goal_completions = args[:goal_completions] if args.key?(:goal_completions)
  @goal_index = args[:goal_index] if args.key?(:goal_index)
  @goal_name = args[:goal_name] if args.key?(:goal_name)
  @goal_previous_step1 = args[:goal_previous_step1] if args.key?(:goal_previous_step1)
  @goal_previous_step2 = args[:goal_previous_step2] if args.key?(:goal_previous_step2)
  @goal_previous_step3 = args[:goal_previous_step3] if args.key?(:goal_previous_step3)
  @goal_value = args[:goal_value] if args.key?(:goal_value)
end