Module: TrueandcoAnalytics
- Defined in:
- lib/trueandco_analytics.rb,
lib/trueandco_analytics/engine.rb,
lib/trueandco_analytics/version.rb,
lib/trueandco_analytics/config/params.rb,
lib/trueandco_analytics/console/cli/common.rb,
lib/trueandco_analytics/console/cli/report.rb,
lib/trueandco_analytics/common/services/logger.rb,
lib/trueandco_analytics/common/services/reports.rb,
lib/trueandco_analytics/common/services/workers.rb,
lib/trueandco_analytics/common/models/metric_user.rb,
lib/generators/trueandco_analytics/install_generator.rb,
lib/trueandco_analytics/common/reports/details_report.rb,
lib/trueandco_analytics/common/services/redis_connect.rb,
lib/trueandco_analytics/common/models/metric_user_visit.rb,
lib/trueandco_analytics/common/models/application_record.rb,
lib/trueandco_analytics/common/models/metric_user_session.rb,
lib/trueandco_analytics/common/reports/application_report.rb,
lib/trueandco_analytics/common/reports/page_buy_in_date_range_report.rb
Defined Under Namespace
Modules: Cli, Config, Database, Modules, RedisConnect, ReportC, Site
Classes: ApplicationRecord, ApplicationReport, DetailsReport, Engine, InstallGenerator, Logger, MetricUser, MetricUserSession, MetricUserVisit, PageBuyInDateRangeReport, Reports, Workers
Constant Summary
collapse
- ROOT =
File.expand_path('../..', __FILE__)
- COMMON_PATH =
"#{TrueandcoAnalytics::ROOT}/lib/trueandco_analytics/common"
- SITE_PATH =
"#{TrueandcoAnalytics::ROOT}/lib/trueandco_analytics/site"
- CONSOLE_PATH =
"#{TrueandcoAnalytics::ROOT}/lib/trueandco_analytics/console"
- VERSION =
'0.4.11'
Class Method Summary
collapse
Class Method Details
.js_track(form_authenticity_token) ⇒ Object
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/trueandco_analytics.rb', line 57
def js_track(form_authenticity_token)
pull_user_statistic_path = ::TrueandcoAnalytics::Engine.routes.url_helpers.receiver_pull_user_statistic_path
<<-USER_BEHAVIOR_TRACK
var root_url = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '')
var statistics_url = root_url + "#{pull_user_statistic_path}",
app_token = "#{form_authenticity_token}",
selector = "#{::TrueandcoAnalytics::Config::Params.buy_selector}",
time_survey = "#{::TrueandcoAnalytics::Config::Params.time_survey}";
analitics_in_point(statistics_url, app_token, selector, time_survey);
USER_BEHAVIOR_TRACK
end
|
.table_name_prefix ⇒ Object
48
49
50
|
# File 'lib/trueandco_analytics.rb', line 48
def self.table_name_prefix
'metric_'
end
|