Website and ads teams

Track leads in Google Ads

Connect Aesthera’s saved-lead event to a conversion action in your own Google Ads account.

Before you start

Aesthera enables tracking and supplies the tracked embed. Your website team installs it, and your ads team manages the Google Ads action and website’s GTM container. No Google tag needs to be installed inside the Aesthera iframe.

Confirm the website address

Send Aesthera the website addresses where the widget runs, such as https://www.clinic.example. All pages on that HTTPS origin share one approval; individual page paths are not required. A different subdomain or non-www address needs its own entry. The full published URL is useful when checking an installation.

Install the tracked embed

Use the full iframe and helper script from the installation guide, keeping each page’s treatment and campaign parameters. Saving settings in Aesthera does not change HTML already on your website. The helper relays the iframe’s postMessage into the parent page’s data layer.

Configure Google Tag Manager

Install your GTM container on the website containing the widget. Obtain the Conversion ID and Conversion Label from your Google Ads website conversion action. Configure the following in that container.

Configure Google Tag Manager
GTM itemConfiguration
Custom Event triggerEvent name: aesthera_lead_submitted
Data Layer VariableName it Aesthera conversion ID. Set Data Layer Variable Name to aesthera_conversion_id.
Google Ads Conversion Tracking tagEnter your action’s Conversion ID and Conversion Label.
Tag → Transaction IDSelect {{Aesthera conversion ID}}, the variable created above.
Tag → TriggeringSelect the aesthera_lead_submitted custom event trigger.

Launch check with your ads team

  1. Open GTM Preview and connect to the published page containing the widget.
  2. Generate a preview and open the contact form. The Aesthera lead conversion tag should not have fired yet.
  3. Submit a test inquiry. Under consent conditions that permit the tag, expect one aesthera_lead_submitted event and one conversion tag fire. Confirm Transaction ID contains the supplied conversion ID.
  4. Have the clinic confirm receipt of the test inquiry. Publish the GTM changes after the check passes.

What a successful check confirms

The event confirms that Aesthera saved the inquiry. The clinic’s receipt confirms lead delivery, and Tag Assistant confirms the website tag fired. Credit to an ad campaign still depends on an eligible ad interaction and Google Ads processing; a test form submission alone does not prove that attribution.

Event reference and troubleshooting

The event contains only its name and an opaque conversion ID. It does not contain contact fields, photos, or treatment selections. Inspect it in the containing page’s console, rather than the iframe’s console.

  • No event: confirm the tracked iframe and helper script are installed, tracking is enabled, and the exact website origin is approved.
  • Event present but no tag fire: check the custom event name, tag trigger, consent state, and browser blocking in Tag Assistant.
Inspect saved-lead events in the parent page
(window.dataLayer || []).filter(
  item => item.event === 'aesthera_lead_submitted'
)