Skip to content
Snippets Groups Projects
Commit d0c9d610 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

use a version specific docs url for our information collection link.

parent a2a02cda
No related branches found
No related tags found
No related merge requests found
import React, { Component, PropTypes } from "react";
import MetabaseAnalytics from "metabase/lib/analytics";
import MetabaseSettings from "metabase/lib/settings";
import Toggle from "metabase/components/Toggle.react";
import StepTitle from './StepTitle.react';
......@@ -27,6 +28,7 @@ export default class PreferencesStep extends Component {
render() {
let { activeStep, allowTracking, setupComplete, stepNumber } = this.props;
const { tag } = MetabaseSettings.get('version');
let stepText = 'Usage data preferences';
if (setupComplete) {
......@@ -41,7 +43,7 @@ export default class PreferencesStep extends Component {
<StepTitle title={stepText} number={stepNumber} />
<form onSubmit={this.formSubmitted.bind(this)} novalidate>
<div className="Form-field Form-offset">
In order to help us improve Metabase, we'd like to collect certain data about usage through Google Analytics. <a className="link" href="http://www.metabase.com/docs/latest/information-collection.html" target="_blank">Here's a full list of everything we track and why.</a>
In order to help us improve Metabase, we'd like to collect certain data about usage through Google Analytics. <a className="link" href={"http://www.metabase.com/docs/"+tag+"/information-collection.html"} target="_blank">Here's a full list of everything we track and why.</a>
</div>
<div className="Form-field Form-offset mr4">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment