module Staccato # The `Tracker` class has methods to create all `Hit` types # using the tracker and client id # # @author Tony Pitale class Tracker # sets up a new tracker # @param id [String] the GA tracker id # @param client_id [String, nil] unique value to track user sessions def initialize(id, client_id = nil) @id = id @client_id = client_id end # The tracker id for GA # @return [String, nil] def id @id end # The unique client id # @return [String] def client_id @client_id ||= Staccato.build_client_id end # Track a pageview # # @param options [Hash] options include: # * path (optional) the path of the current page view # * hostname (optional) the hostname of the current page view # * title (optional) the page title # @return [