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.


692
693
694
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 692

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)

655
656
657
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 655

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)

660
661
662
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 660

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)

665
666
667
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 665

def goal_index
  @goal_index
end

#goal_nameString

Name of the goal. Corresponds to the JSON property goalName

Returns:

  • (String)

670
671
672
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 670

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)

675
676
677
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 675

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)

680
681
682
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 680

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)

685
686
687
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 685

def goal_previous_step3
  @goal_previous_step3
end

#goal_valueFloat

Value in this goal. Corresponds to the JSON property goalValue

Returns:

  • (Float)

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

def goal_value
  @goal_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


697
698
699
700
701
702
703
704
705
706
# File 'generated/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