<settings module="basic_statistics">
	<section name="general">
		<option type="status" name="dpc_status_basic_statistics" module="basic_statistics" title="{@text:Statistics}" description-intro="{@text:Track hits on your site and let them be displayed in your dashboard, if you want to use our internal statistics. Else, implement here your Google Analytics tracking code instead and disable internal tracking.}" description="{@text:This module doesn’t need any data privacy note, because neither the IP address nor other user specific information is being stored to your website. You can exclude user groups from being tracked and add an additional considerable statistic codes.}" helptext="{@text:Activate statistics to see the current website access.}" helplink-de="https://delucks.com/wordpress-seo-plugin/optimierung-anleitung/statistik/" helplink-en="https://delucks.com/en/wordpress-seo-plugin/optimization-tips-tutorial/statistics/">
			<value label="{@text:Activated}" class="btn btn-success" value="1" addToDom="class,value"/>
			<value label="{@text:Deactivated}" class="btn btn-warning" addToDom="class,value,data-target" toggle="posttypes"/>
		</option>
		<option type="section" section="intro" />
		<!-- option type="section" section="codes" /  -->
	</section>

	<section name="intro">
		<!-- Tracking Codes: Start -->
		<option type="wrapper" width="6" row="no">
			<option type="heading" size="4" value="{@text:Tracking-Codes} (head + analytics)" id="tracking-codes" addToDom="id" />
			<option type="wrapper" width="12" class="no-padding">
				<input type="textarea" name="trackingCodes" class="form-control" rows="4" addToDom="class,style,rows" />
			</option>
		</option>
		<option type="wrapper" width="6" row="no">
			<option type="heading" size="4" value="{@text:Tracking-Codes} (body)" id="tracking-codes-body" addToDom="id" />
			<option type="wrapper" width="12" class="no-padding">
				<input type="textarea" name="trackingCodesBody" class="form-control" rows="4" addToDom="class,style,rows" />
			</option>
		</option>
		<option type="wrapper" width="4" row="no">
			<option type="link" link="http://www.google.com/analytics/" text="{@text:Visit Google Analytics}" class="form-group btn btn-google" target="_blank" addToDom="target,class"/>
		</option>

		<option type="nextRow" />
		<!-- Tracking Codes: Ende -->

		<!-- Analytics Einstellungen: Start -->
		<option type="wrapper" width="12" hide="true" displayElement="trackingCodes" displaySearchValue="analytics" displayType="block" class="no-gutters">
			<option type="wrapper" width="4">
				<option type="checkbox" id="anonIP" name="analytics][anonymousIp" label="{@text:Anonymize IP address}" class="icheckbox_square-blue form-control" addToDom="class" />
			</option>
			<option type="wrapper" width="4">
				<option type="checkbox" id="gaOptOut" name="analytics][gaOptOut" label="{@text:Activate Google Analytics Opt-out code}" class="icheckbox_square-blue form-control" tooltip-placement="bottom" addToDom="class" />
			</option>
			<option type="wrapper" width="4">
				<option type="checkbox" id="hostAnalyticsLocal" name="analytics][hostAnalyticsLocal" label="{@text:Host analytics local}" class="icheckbox_square-blue form-control" tooltip-placement="bottom" addToDom="class" />
			</option>
		</option>
		<!-- Analytics Einstellungen: Ende -->
		<option type="wrapper" width="12" class="no-gutters">
			<option type="wrapper" width="4">
				<option type="checkbox" id="trackingOptIn" name="analytics][trackingOptIn" label="{@text:Load Tracking-Codes after Opt-in}" class="icheckbox_square-blue form-control" tooltip-placement="bottom" addToDom="class" />
			</option>
			<option type="wrapper" width="4">
				<option type="checkbox" id="keepUtmParams" name="keepUtmParams" label="{@text:Keep UTM params and append them to links}" class="icheckbox_square-blue form-control" tooltip-placement="bottom" addToDom="class" />
			</option>
			<option type="wrapper" width="4">
				<!-- option type="checkbox" id="eventTrackingMailtoTel" name="analytics][eventTrackingMailtoTel" label="{@text:Event tracking for tel and mailto links}" value="on" class="icheckbox_square-blue form-control" tooltip-placement="bottom" addToDom="class" /-->
			</option>
		</option>

		<option type="wrapper" width="12" hide="true" displayElement="trackingCodes" displaySearchValue="analytics" displayType="block">
			<option type="var" key="updateUrl" value="@method:basic:statistics:getAnalyticsUpdateScriptUrl" />
			<option type="var" key="cronjobDir" value="@method:basic:statistics:getAnalyticsDir" />
			<option type="var" key="lang" value="@function:getUserLang" />
			<option type="if" condition="{@var:lang}" operator="==" value="de">
				<option type="hinweis" text="{@text:Please setup cronjob}: {@var:updateUrl}" displayElement="analytics][hostAnalyticsLocal" displayValue="on" link="https://delucks.com/wordpress-seo-plugin/optimierung-anleitung/statistik/#analytics-lokal-hosten" link-text="{@text:Tutorial}" link-target="_blank" class="pull-left errorPage-select" id="hostAnalyticsLocalNotice" hide="true"/>
			</option>
			<option type="if" condition="{@var:lang}" operator="==" value="en">
				<option type="hinweis" text="{@text:Please setup cronjob}: {@var:updateUrl}" displayElement="analytics][hostAnalyticsLocal" displayValue="on" link="https://delucks.com/en/wordpress-seo-plugin/optimization-tips-tutorial/statistics/#host-analytics-local" link-text="{@text:Tutorial}" link-target="_blank" class="pull-left errorPage-select" id="hostAnalyticsLocalNotice" hide="true"/>
			</option>
		</option>

		<!-- Select external ranking system -->
		<option type="wrapper" width="12" class="col-sm-6 col-xs-12" id="dpc_select_external_ranking_system" addToDom="id">
			<option type="wrapper" width="12" class="col-sm-3 col-xs-12">
				<option type="heading" size="4" value="{@text:Select External Ranking System}" id="dpc-client-secret-body" addToDom="id" />
				<option type="select" name="dpc_external_ranking_system" label="{@text:Select External Ranking System}" class="form-control" addToDom="class">
					<option value="dpc_sistrix_system" label="{@text:Sistrix}" />
					<option value="dpc_google_search_console_system" label="{@text:Google Search Console}" />
				</option>
			</option>
		</option>

		<option type="wrapper" width="8" row="no" class=" dpc_show_sistrix_form_elements">
			<option type="text" name="sistrix_api_key" label="{@text:Sistrix API-Key}" class="form-control" addToDom="class" />
		</option>

		<option type="wrapper" width="4" class="col-sm-4 col-xs-12">
			<option type="link" link="https://app.sistrix.com/account/api" text="{@text:Generate the SISTRIX API-Key}" class="form-group" target="_blank" addToDom="target,class"/>
		</option>

		<!-- insert an input field for the Google Search Console API key -->
		<option type="wrapper" width="6" class="col-sm-6 col-xs-12 dpc_show_gsc_form_elements">
			<option type="text" name="dpc_gsc_api_key" label="{@text:Google Search Console API Key}" class="form-control" addToDom="class" />
		</option>
		<option type="wrapper" width="12" class="col-sm-6 col-xs-12 dpc_show_gsc_form_elements">
			<option type="heading" size="4" value="{@text:Google Client Secret JSON} (body)" id="dpc-client-secret-body" addToDom="id" />
			<option type="textarea" name="dpc_gsc_json_client_secret" rows="4" class="form-control" addToDom="class,rows" />
		</option>
		<option type="wrapper" width="12" class="col-sm-6 col-xs-12 dpc_show_gsc_tutorial">
			<option type="heading" size="4" value="{@text:Learn how to generate the google search console API and JSON secret} (body):" id="dpc-client-gsc-tutorial-body" addToDom="id" />
			<option type="link" target="_blank" link="https://delucks.com/en/wordpress-seo-plugin/statistics/google-search-console/" name="gsc-tutorial-eng" text="{@text:English/ International Version}" class="" addToDom="class" />
			<option type="heading" size="4" value="{@text:Or}" id="dpc-client-gsc-tutorial-separator-text" addToDom="id" />
			<option type="link" target="_blank" link="https://delucks.com/wordpress-seo-plugin/statistik/google-search-console/" name="gsc-tutorial-de" text="{@text:German Version.}" class="" addToDom="target,class" />
		</option>

		<!-- insert two selectors for date (90 days, 1 month, 1 week) and keywords (all, defined) -->
		<option type="wrapper" width="12" class="col-sm-6 col-xs-12 dpc_show_gsc_form_elements">
			<option type="wrapper" width="3" class="col-sm-3 col-xs-12">
				<option type="select" name="dpc_gsc_date_range" label="{@text:Date Range}" class="form-control" addToDom="class">
					<option value="90" label="{@text:90 Days}" />
					<option value="30" label="{@text:1 Month}" />
					<option value="7" label="{@text:1 Week}" />
				</option>
			</option>
			<option type="wrapper" width="3" class="col-sm-3 col-xs-12">
				<option type="select" name="dpc_gsc_keyword_type" label="{@text:Keyword Type}" class="form-control" addToDom="class">
					<option value="all" label="{@text:All Keywords}" />
					<option value="defined" label="{@text:Defined Keywords}" />
				</option>
			</option>
		</option>

		<option type="wrapper" width="8" row="no" class="dpc_show_gsc_form_elements">
			<option type="link" link="" id="authorizeGscOverApiBtn" text="{@text:Authorize Google Oauth over API}" class="form-group btn btn-danger" target="" addToDom="target,class"/>
		</option>		
	</section>

	<section name="codes">
		<option type="wrapper" width="4" class="col-sm-6 col-xs-12">
			<option type="copycode" heading="{@text:Shortcode}" id="gaOptOutShortcode" name="Shortcode" text="[dpc_analytics_opt_out link_text='']" tooltip-content="{@text:Use the WordPress shortcode in the editor and in widgets of your website.}" />
		</option>
		<option type="wrapper" width="4" class="col-sm-6 col-xs-12">
			<option type="copycode" heading="{@text:PHP}" id="gaOptOutPhp" name="PHP" text="&amp;lt;?php echo function_exists('dpc_analytics_opt_out')  ? dpc_analytics_opt_out() : ''; ?&amp;gt;" tooltip-content="{@text:Use the PHP code if you want to embed the link directly in your theme.}"/>
		</option>
		<option type="wrapper" width="4" class="col-sm-6 col-xs-12">
			<option type="link" target="_blank" link="./widgets.php" icon-class="fa fa-arrow-right" class="widget-area" text="{@text:Use it as a widget}" addToDom="target"/>
		</option>
	</section>

	<defaults>
		<var name="analytics][anonymousIp" value="on"/>
	</defaults>
</settings>