Created
February 12, 2014 23:12
-
-
Save rra3/8966460 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require_dependency CbIntl::Engine.root.join('app','controllers','cb_intl','jobs_controller').to_s | |
module CbIntl | |
class JobsController < ApplicationController | |
include CBVisitorTracker::Tracker | |
append_after_filter :track_visitors, :only => [:detail, :jobresults] | |
def track_visitors | |
self.visitor_track[:job_results] = @jobdids.join(',') unless @jobdids.nil? | |
self.visitor_track[:site_property] = 'WIR' | |
self.visitor_track[:ipath] = params[:ipath] unless params[:ipath].nil? | |
self.visitor_track[:job_did] = @job.did unless @job.nil? | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment