Anni Marketing

Description

Anni is a marketing assistant for small businesses in Switzerland (anni-marketing.ch). This companion plugin lets Anni finish your Google setup automatically after you connect your WordPress site:

  • Outputs the Google Analytics 4 tag (gtag.js) in your site’s head — only if you (or Anni, with your permission) configure a measurement ID.
  • Outputs the Google Search Console site-verification meta tag — only if a verification token is configured.
  • Provides a small authenticated REST endpoint (anni/v1) so the Anni app can read plugin status and set the two values above. All endpoints require the manage_options capability (administrators). Requests are authenticated with WordPress Application Passwords.

The plugin itself does not track visitors, does not send data anywhere, and stores only two options (anni_ga4_id, anni_gsc_verification). The Google Analytics tag is only loaded if a measurement ID has been explicitly configured; in that case Google’s terms for Analytics apply.

External services

This plugin connects your site to the Anni marketing platform (https://anni-marketing.ch), operated by
digitale rakete GmbH (https://digitalerakete.ch), so that Anni can complete your Google setup for you.

What the plugin itself sends: nothing. The plugin does not initiate any outbound request. It only
receives authenticated REST requests from the Anni app and stores/prints two values on your site.

When your site is contacted: only after you connect your website inside your own Anni account and
create a WordPress Application Password for it. The Anni app then calls the endpoints below using
that password:

  • GET /wp-json/anni/v1/status — reads whether the plugin is active and which values are set
    (requires the manage_options capability).
  • POST /wp-json/anni/v1/ga4 — stores your Google Analytics 4 measurement ID (requires manage_options).
  • POST /wp-json/anni/v1/gsc — stores your Google Search Console verification token (requires manage_options).

Data involved: your GA4 measurement ID and your Search Console verification token. No visitor data,
no personal data and no site content is transmitted by this plugin.

Google Analytics: if — and only if — a measurement ID is configured, the plugin prints Google’s
standard gtag.js snippet, which loads https://www.googletagmanager.com/gtag/js in visitors’ browsers.
This is Google’s service, used under your own Google Analytics property. Google’s terms and privacy
policy apply: https://policies.google.com/terms and https://policies.google.com/privacy

Anni platform terms and privacy policy: https://anni-marketing.ch/nutzungsbedingungen and
https://anni-marketing.ch/datenschutz

Installation

  1. Install and activate the plugin.
  2. Connect your website in your Anni account (anni-marketing.ch) — Anni configures statistics and Search Console automatically.
  3. Alternatively, set the options manually via WP-CLI or the REST endpoint.

FAQ

Does this plugin track my visitors?

No. It only prints the Google Analytics tag if you configure a measurement ID. Without configuration it outputs nothing.

Who can change the settings?

Only authenticated WordPress administrators (manage_options), typically via an Application Password issued by you. All three endpoints require this — including reading the plugin status.

Does it work without an Anni account?

Yes — you can set the GA4 ID and the Search Console token yourself; the plugin is a minimal, dependency-free head-injector.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Anni Marketing” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Anni Marketing” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.4

  • Author URI auf https://digitalerakete.ch umgestellt (die alte Adresse hatte kein
    gueltiges Zertifikat und wurde vom Review geruegt).
  • Firmenname in readme.txt an das Impressum angeglichen: digitale rakete GmbH.

1.1.3

  • Tightened the /status REST endpoint to require manage_options (was edit_posts), matching the other two endpoints and this readme’s own description.

1.1.2

  • Added the required “External services” documentation.
  • Corrected the documented capabilities to match the code (status: edit_posts, writes: manage_options).

1.1.0

  • Search Console verification meta support (anni/v1/gsc).

1.0.0

  • Initial release: GA4 tag output + status endpoint.