=== Simple Ads for Google Ads ===
Contributors: simpleads
Tags: google ads, conversion tracking, leads, contact form 7, wpforms
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your site to Simple Ads: adds your Google Ads conversion tag and reports form submissions as leads, with no code.

== Description ==

Simple Ads is AI software (not an agency) that builds and manages Google Ads Search campaigns for small businesses, in their own Google Ads account. This plugin connects your WordPress site to your Simple Ads campaign and takes care of the part most sites get wrong: conversion tracking.

Once connected, the plugin:

* adds your campaign's Google Ads conversion tag to every page — no code to paste;
* remembers the Google click id (gclid) of visitors who arrive from your ads, and adds it to your forms;
* sends each form submission to Simple Ads as a lead, so it is reported to Google Ads as a conversion and credited to the right ad click;
* fires the conversion on your thank-you page, after an AJAX form success, or when an embedded Cal.com, Calendly or Typeform booking completes.

Supported form plugins: Contact Form 7, WPForms (Lite and Pro), Gravity Forms, Elementor Pro Forms, Ninja Forms and Fluent Forms. No webhook add-ons are needed.

You can switch the conversion tag and lead reporting on or off separately, and disconnect at any time.

More about the plugin: https://automate-ads.com/wordpress

A Simple Ads account is required. Building and reviewing a campaign plan in Simple Ads is free; running campaigns is a paid subscription on Simple Ads' side (see https://automate-ads.com/pricing). Everything in this plugin works on any Simple Ads plan.

The plugin works in English.

== External services ==

This plugin connects to two external services. Nothing is sent to either until an administrator presses "Connect to Simple Ads".

**Simple Ads** (https://automate-ads.com), the service the plugin is the interface to:

* When you connect: your site address and site name are sent so Simple Ads can link the site to your campaign.
* Periodically (at most every 12 hours) and when you press "Refresh": the plugin downloads your campaign's conversion settings (Google Ads conversion id, label and thank-you page path).
* When a visitor submits one of your forms: the submitted fields (except password, payment and identity-number fields), the form name, the page address and the visitor's Google click id are sent so the submission can be recorded as a lead and reported to Google Ads. You can turn this off under Settings → Simple Ads.
* When you disconnect or delete the plugin: a request to remove this site's connection.

Terms of service: https://automate-ads.com/terms — Privacy policy: https://automate-ads.com/privacy

**Google Ads (Google tag, gtag.js)**, loaded from https://www.googletagmanager.com on your site's pages once connected (unless you turn the conversion tag off). Google receives the page visit and, when a visitor converts, the conversion event, as with any Google Ads tag.

Google terms: https://policies.google.com/terms — Google privacy policy: https://policies.google.com/privacy

If your site needs visitor consent before loading advertising tags, use the `sa4ga_output_tracking` filter (see FAQ) together with your consent plugin.

== Installation ==

1. Install and activate the plugin.
2. Go to Settings → Simple Ads and press "Connect to Simple Ads".
3. Sign in to Simple Ads (or create a free account), choose the campaign for this site and press "Allow access".
4. Back in WordPress you will see the connected campaign. Submit one of your forms to check that the lead arrives.

== Frequently Asked Questions ==

= Do I need a Simple Ads account? =

Yes. The plugin connects your site to your Simple Ads campaign. Creating an account and building a campaign plan is free.

= Will the plugin change my campaigns or budgets? =

No. It only adds the conversion tag and reports leads. Campaigns, keywords and budgets are managed in Simple Ads, and nothing spends until you launch a campaign there yourself.

= Which data is sent when someone submits a form? =

The fields of that form (names and values), except fields whose name looks like a password, card, CVV, IBAN, SSN or tax id, plus the form name, the page address and the Google click id if the visitor came from an ad. You can switch lead reporting off under Settings → Simple Ads.

= How do I wait for cookie consent before loading the Google tag? =

Return false from the `sa4ga_output_tracking` filter until the visitor has consented, for example:

`add_filter( 'sa4ga_output_tracking', function ( $output ) { return $output && my_consent_given( 'marketing' ); } );`

= How do I remove the plugin completely? =

Settings → Simple Ads → Disconnect, then deactivate and delete the plugin. Deleting it removes all its settings from your database and asks Simple Ads to drop the connection. Your campaigns and leads in Simple Ads are not deleted.

== Screenshots ==

1. Settings → Simple Ads once connected: the campaign, its conversion tag, the latest lead and the two switches.
2. Connecting your site: in Simple Ads, pick the campaign for this site and allow access.
3. Leads from your forms, counted next to clicks, spend and cost per lead in your Simple Ads campaign.
4. Simple Ads → Settings → WordPress: the connected site, with Disconnect.

== Changelog ==

= 1.0.0 =
* First release: connect to Simple Ads, Google Ads conversion tag, gclid capture, lead reporting from Contact Form 7, WPForms, Gravity Forms, Elementor Pro Forms, Ninja Forms and Fluent Forms.
