Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Admin/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function show_module_not_installed_error() {
),
'post'
),
'https://plausible.io/wordpress-analytics-plugin#if-the-proxy-script-is-slow'
'https://plausible.io/docs/troubleshoot-integration#proxy-script-is-slow'
);

Messages::set_error( $message );
Expand Down Expand Up @@ -217,7 +217,7 @@ public function maybe_enable_proxy( $settings, $old_settings ) {
'Please check that your proxy is functioning correctly. If you encounter any issues with tracking, <a href="%s" target="_blank">click here</a> for a list of potential solutions',
'plausible-analytics'
),
'https://plausible.io/wordpress-analytics-plugin#stats-not-being-recorded-after-enabling-the-proxy'
'https://plausible.io/docs/troubleshoot-integration#proxy-not-recording-stats-after-setup'
)
);
}
Expand Down
26 changes: 13 additions & 13 deletions src/Admin/Settings/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,39 +140,39 @@ public function __construct() {
'fields' => [
EnhancedMeasurements::FOUR_O_FOUR => [
'label' => esc_html__( '404 error pages', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-404-error-pages',
'docs' => 'https://plausible.io/docs/wordpress-integration#404-error-pages',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::FOUR_O_FOUR,
'caps' => [ Capabilities::GOALS ],
],
EnhancedMeasurements::FILE_DOWNLOADS => [
'label' => esc_html__( 'File downloads', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-file-downloads',
'docs' => 'https://plausible.io/docs/wordpress-integration#file-downloads',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::FILE_DOWNLOADS,
'caps' => [ Capabilities::GOALS ],
],
EnhancedMeasurements::OUTBOUND_LINKS => [
'label' => esc_html__( 'Outbound links', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-external-link-clicks',
'docs' => 'https://plausible.io/docs/wordpress-integration#outbound-links',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::OUTBOUND_LINKS,
'caps' => [ Capabilities::GOALS ],
],
EnhancedMeasurements::PAGEVIEW_PROPS => [
'label' => esc_html__( 'Authors and categories', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-send-custom-properties',
'docs' => 'https://plausible.io/docs/wordpress-integration#authors-and-categories',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::PAGEVIEW_PROPS,
'caps' => [ Capabilities::PROPS ],
],
EnhancedMeasurements::CLOAKED_AFFILIATE_LINKS => [
'label' => esc_html__( 'Cloaked affiliate links', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-cloaked-affiliate-link-clicks',
'docs' => 'https://plausible.io/docs/wordpress-integration#cloaked-affiliate-links',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::CLOAKED_AFFILIATE_LINKS,
Expand All @@ -195,7 +195,7 @@ public function __construct() {
],
EnhancedMeasurements::ECOMMERCE_REVENUE => [
'label' => esc_html__( 'Ecommerce revenue', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-ecommerce-revenue',
'docs' => 'https://plausible.io/docs/wordpress-integration#track-ecommerce-revenue',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::ECOMMERCE_REVENUE,
Expand All @@ -208,23 +208,23 @@ public function __construct() {
],
EnhancedMeasurements::FORM_COMPLETIONS => [
'label' => esc_html__( 'Form completions', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-form-completions',
'docs' => 'https://plausible.io/docs/wordpress-integration#form-completions',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::FORM_COMPLETIONS,
'caps' => [ Capabilities::GOALS ],
],
EnhancedMeasurements::LOGGED_IN_USER_STATUS => [
'label' => esc_html__( 'Logged-in user status', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-logged-in-user-status',
'docs' => 'https://plausible.io/docs/wordpress-integration#logged-in-user-status',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::LOGGED_IN_USER_STATUS,
'caps' => [ Capabilities::PROPS ],
],
EnhancedMeasurements::QUERY_PARAMS => [
'label' => esc_html__( 'Query parameters', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-custom-query-parameters',
'docs' => 'https://plausible.io/docs/wordpress-integration#query-parameters',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::QUERY_PARAMS,
Expand All @@ -247,15 +247,15 @@ public function __construct() {
],
EnhancedMeasurements::SEARCH_QUERIES => [
'label' => esc_html__( 'Search queries', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-enable-site-search-tracking',
'docs' => 'https://plausible.io/docs/wordpress-integration#search-queries',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::SEARCH_QUERIES,
'caps' => [ Capabilities::GOALS ],
],
EnhancedMeasurements::HASH_BASED_ROUTING => [
'label' => esc_html__( 'Hash-based routing', 'plausible-analytics' ),
'docs' => 'https://plausible.io/wordpress-analytics-plugin#how-to-enable-hash-based-url-tracking',
'docs' => 'https://plausible.io/docs/wordpress-integration#hash-based-routing',
'slug' => 'enhanced_measurements',
'type' => 'checkbox',
'value' => EnhancedMeasurements::HASH_BASED_ROUTING,
Expand Down Expand Up @@ -284,7 +284,7 @@ public function __construct() {
'',
Helpers::get_proxy_resource( 'cache_dir' ) . Helpers::get_filename() . '.js</code>'
),
'https://plausible.io/wordpress-analytics-plugin#how-to-enable-a-proxy-to-get-more-accurate-stats'
'https://plausible.io/docs/wordpress-integration#bypass-adblockers-with-the-proxy'
),
'fields' => [
[
Expand Down Expand Up @@ -325,7 +325,7 @@ public function __construct() {
'plausible-analytics'
),
esc_url(
'https://plausible.io/wordpress-analytics-plugin#how-to-exclude-specific-pages-from-being-tracked'
'https://plausible.io/docs/wordpress-integration#exclude-specific-pages-from-tracking'
),
esc_html__( 'See syntax &raquo;', 'plausible-analytics' )
),
Expand Down
2 changes: 1 addition & 1 deletion src/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ private function validate_api_token( $token = '' ) {
'plausible-analytics'
),
"$hosted_domain/$domain/settings/integrations?new_token=WordPress",
'https://plausible.io/wordpress-analytics-plugin#oops-the-token-you-used-is-invalid'
'https://plausible.io/docs/troubleshoot-integration#plugin-token-showing-as-invalid'
)
);

Expand Down
Loading