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
" var root_url = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: '')\n var statistics_url = root_url + \"\#{pull_user_statistic_path}\",\n app_token = \"\#{form_authenticity_token}\",\n selector = \"\#{::TrueandcoAnalytics::Config::Params.buy_selector}\",\n time_survey = \"\#{::TrueandcoAnalytics::Config::Params.time_survey}\";\n\n analitics_in_point(statistics_url, app_token, selector, time_survey);\n USER_BEHAVIOR_TRACK\nend\n"
|
.setup(&block) ⇒ Object
52
53
54
|
# File 'lib/trueandco_analytics.rb', line 52
def self.setup(&block)
TrueandcoAnalytics::Config::Params.set_params(&block)
end
|
.table_name_prefix ⇒ Object
48
49
50
|
# File 'lib/trueandco_analytics.rb', line 48
def self.table_name_prefix
'metric_'
end
|