Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add utt to events? #90

Closed
trddddd opened this issue Mar 3, 2020 · 8 comments
Closed

How to add utt to events? #90

trddddd opened this issue Mar 3, 2020 · 8 comments
Assignees

Comments

@trddddd
Copy link

trddddd commented Mar 3, 2020

How i can add timing 'utt=' include to transaction or event?

@trddddd trddddd changed the title add timing add utt to events Mar 3, 2020
@trddddd trddddd changed the title add utt to events How to add utt to events? Mar 3, 2020
@trddddd
Copy link
Author

trddddd commented Mar 3, 2020

its stupid monkeypatch and wrong idea sry)

# frozen_string_literal: true

module Staccato
  module Measurement
    class Timing
      # lookup key for use in Hit#add_measurement
      # @return [Symbol]
      def self.lookup_key
        :timing
      end

      # Timing measurement options fields
      FIELDS = {
        time: 'utt'
      }.freeze

      include Measurable
    end

    TYPES = Hash[
      [
        Checkout,
        CheckoutOption,
        ImpressionList,
        Product,
        ProductImpression,
        Promotion,
        Transaction,
        Timing,
      ].map { |k| [k.lookup_key, k] }
    ].freeze
  end
end

@trddddd trddddd closed this as completed Mar 3, 2020
@tpitale
Copy link
Owner

tpitale commented Mar 3, 2020

time: 'utt',

@tpitale
Copy link
Owner

tpitale commented Mar 3, 2020

Are you saying Timing isn't in the list of measurements here?

@tpitale tpitale reopened this Mar 3, 2020
@tpitale tpitale self-assigned this Mar 3, 2020
@tpitale
Copy link
Owner

tpitale commented Mar 3, 2020

Timing is a hit type of its own. Can you provide docs that say utt is a global option?

@tpitale
Copy link
Owner

tpitale commented Mar 3, 2020

The docs say that utt is only for Timing: https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#utt

@tpitale tpitale closed this as completed Mar 3, 2020
@trddddd
Copy link
Author

trddddd commented Mar 3, 2020

thanks for the explanation)

@trddddd
Copy link
Author

trddddd commented Mar 3, 2020

Timing is a hit type of its own. Can you provide docs that say utt is a global option?

hitbuilder says that the syntax is valid if you select the type of event or pageview.
And this is a little misleading

@tpitale
Copy link
Owner

tpitale commented Mar 3, 2020

I see that I can make that … I'm not sure what GA will do with that information. I can't find information in the docs that says if it would just be ignored or what.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants