=== WordPresto Tag Injector ===
Contributors: wordpresto
Tags: wordpresto, analytics, tag manager, script injection, seo
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Injects the WordPresto site tag into your site's <head> so WordPresto can read real, live signals from your WordPress site.

== Description ==

WordPresto Tag Injector does one thing: it adds the WordPresto site tag to the `<head>` of every front-end page on your WordPress site, using the Site ID from your WordPresto project.

That's the entire plugin. It does not collect any data itself, does not phone home, and does not add anything to your site until you save a Site ID.

= What it adds =

Once you enter your Site ID under **Settings → WordPresto**, the plugin prints this into `<head>` on every front-end request:

`<script src="https://app.wordpresto.com/tag/v1.js" data-site-id="YOUR_SITE_ID" async></script>`

The hosted script itself (served from `app.wordpresto.com`, not from this plugin) is what WordPresto uses to read site signals. This plugin's job is only to get that one tag onto your pages reliably.

= Where do I get a Site ID? =

Your Site ID is generated in your WordPresto project, under Site Signals. Copy it from there and paste it into this plugin's settings page.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/wordpresto-tag-injector`, or install the plugin through the WordPress Plugins screen directly.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. Go to Settings → WordPresto and paste in your Site ID from WordPresto.
4. Save. The tag is now added to every front-end page.

== Frequently Asked Questions ==

= Does this plugin collect any data? =

No. This plugin only prints a `<script>` tag into your site's `<head>`. All data collection happens in the hosted script it points to, which runs in the visitor's browser exactly like any other analytics tag.

= What happens if I don't enter a Site ID? =

Nothing is added to your site. The tag is only printed once a Site ID has been saved.

= Does this add the tag to wp-admin? =

No, the tag is only added to front-end pages.

== Changelog ==

= 1.0.0 =
* Initial release: Settings → WordPresto page for the Site ID, and front-end `<head>` injection of the WordPresto site tag.
