class Google::Apis::AnalyticsreportingV4::GoalData

Represents all the details pertaining to a goal.

Attributes

goal_completion_location[RW]

URL of the page where this goal was completed. Corresponds to the JSON property `goalCompletionLocation` @return [String]

goal_completions[RW]

Total number of goal completions in this activity. Corresponds to the JSON property `goalCompletions` @return [Fixnum]

goal_index[RW]

This identifies the goal as configured for the profile. Corresponds to the JSON property `goalIndex` @return [Fixnum]

goal_name[RW]

Name of the goal. Corresponds to the JSON property `goalName` @return [String]

goal_previous_step1[RW]

URL of the page one step prior to the goal completion. Corresponds to the JSON property `goalPreviousStep1` @return [String]

goal_previous_step2[RW]

URL of the page two steps prior to the goal completion. Corresponds to the JSON property `goalPreviousStep2` @return [String]

goal_previous_step3[RW]

URL of the page three steps prior to the goal completion. Corresponds to the JSON property `goalPreviousStep3` @return [String]

goal_value[RW]

Value in this goal. Corresponds to the JSON property `goalValue` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/analyticsreporting_v4/classes.rb, line 692
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/analyticsreporting_v4/classes.rb, line 697
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