{"size": 295, "ext": "js", "max_stars_repo_path": "packages/common-tracker/src/plugin.js", "max_stars_repo_name": "Fnxxxxo/node-resolve-issue", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/common-tracker/src/plugin.js", "max_issues_repo_name": "Fnxxxxo/node-resolve-issue", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/common-tracker/src/plugin.js", "max_forks_repo_name": "Fnxxxxo/node-resolve-issue", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.6923076923, "max_line_length": 64, "alphanum_fraction": 0.7152542373}
/**
 * Created by Jaron Long on 2021/1/6
 */
import { initAnalytics, initPageTracker } from 'poc-tracker'

const plugin = (context, inject) => {
  const analytics = initAnalytics(<%= options.trackerOptions %>)
  initPageTracker(analytics)
  inject('tracker', analytics)
}

export default plugin
