' . esc_html__( 'Only needed if AI visitor tracking is on under Outercite, Settings, AI visitors.', 'outercite' ) . '
' . '' . esc_html__( 'Suggested text:', 'outercite' ) . ' ' . esc_html__( 'This site uses Outercite to count visits that arrive from AI answers, such as ChatGPT or Perplexity. When you visit a page, your browser sends Outercite the page address, the address you came from, your browser type, your window size and your IP address. Outercite sets one cookie, ct_sid, that lasts 30 minutes and links the pages you view in one visit.', 'outercite' ) . ' ' . sprintf( /* translators: %s: Outercite privacy policy address */ esc_html__( 'Outercite\'s privacy policy: %s', 'outercite' ), 'https://outercite.com/privacy' ) . '
'; wp_add_privacy_policy_content( 'Outercite', wp_kses_post( $text ) ); } /** * The stored switch: on/off, the key and the addresses. * * @return array' . esc_html__( 'See the visits that arrive from AI answers such as ChatGPT and Perplexity, and which pages they land on. Outercite adds a small script and image tag to every page; they run in the visitor\'s browser, so cached pages are tracked too.', 'outercite' ) . '
'; if ( $on ) { $status = Connection::is_linked() ? Ledger::tracking() : null; if ( $status && $status['ok'] && ! empty( $status['data']['lastSeenAt'] ) ) { echo '' . esc_html( sprintf( /* translators: %s: date */ __( 'Last visit recorded %s.', 'outercite' ), wp_date( get_option( 'date_format' ), (int) strtotime( (string) $status['data']['lastSeenAt'] ) ) ) ) . '
'; } else { echo '' . esc_html__( 'No visits from AI answers recorded yet.', 'outercite' ) . '
'; } } if ( Site::is_staging() ) { echo '' . esc_html__( 'This is a copy of the site, so it never prints the tags.', 'outercite' ) . '
'; } echo '' . esc_html__( 'From the visitor\'s browser: the page address, the referring address, the browser and the window size. The script sets one session cookie (ct_sid) that expires after 30 minutes without a visit. It sends no names or email addresses. Mention it in your privacy policy.', 'outercite' ) . '