local-business-conversion-analytics

Track consent-gated conversions with first-touch attribution for local business websites.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/redbananastudios/ai-library --skill local-business-conversion-analytics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: local-business-conversion-analytics
Source: https://github.com/redbananastudios/ai-library/tree/main/skills/local-business-conversion/skills/local-business-conversion-analytics
Command: npx skills add https://github.com/redbananastudios/ai-library --skill local-business-conversion-analytics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It solves unreliable paid-traffic conversion measurement for local business websites by wiring a consent-mode-aware analytics stack that preserves first-touch attribution and sends PPC-usable conversion signals even when cookies are blocked.

Core Features & Use Cases

  • Four-layer analytics stack: Fires Plausible cookieless baseline, then consent-gated GA4/GTM and Meta Pixel signals using Consent Mode v2.
  • First-touch attribution (30-day TTL): Captures click identifiers (gclid/fbclid/utm and related IDs) on landing and attaches stored attribution to later conversion events.
  • Google Ads Enhanced Conversions: Hashes normalized email/phone (SHA-256) and pushes enhanced_conversion_data to the GTM dataLayer for better iOS/Safari matching.
  • Meta event mapping + backup conversion: Maps events to Meta standard Lead and Contact, uses lead_thank_you_view as a resilient mirror, and routes the rest to trackCustom.
  • Click delegation + smart event tracking: Auto-tags phone/mail/WhatsApp links and outbound clicks, while supporting a vocabulary of conversion and engagement events.
  • Smart-bidding value hints: Converts property size selections into indicative GBP values to improve optimization weighting.

Use cases: new analytics installation, retrofitting Enhanced Conversions for existing Google Ads campaigns with weak iOS attribution, and improving ROAS reporting accuracy by preventing last-touch over-crediting.

Quick Start

Use the local-business-conversion-analytics skill to implement the site’s analytics + attribution layer by adding the provided client analytics helpers to your web/lib and wiring the root components so attribution is captured on page load and events are tracked from global click delegation.

Frequently Asked Questions about local-business-conversion-analytics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Google Ads Enhanced Conversions to fix weak iOS attribution?

To implement Enhanced Conversions, this setup hashes normalized email and phone data using SHA-256 and pushes enhanced_conversion_data to the GTM dataLayer, improving iOS and Safari conversion matching.

What is first-touch attribution and how does it prevent last-touch over-crediting in GA4?

First-touch attribution captures click identifiers like gclid, fbclid, and utm parameters on landing, storing them with a 30-day TTL to attach to later conversion events, preventing last-touch over-crediting.

How do I fire Meta Pixel standard events while respecting Consent Mode v2?

You can fire consent-gated Meta Pixel signals by mapping events to standard Lead and Contact categories, routing others to trackCustom, and firing payloads only when consent is granted.

Can I use Plausible cookieless analytics alongside GA4 and Meta Pixel tracking?

Yes, a four-layer analytics stack fires the Plausible cookieless baseline first, then deploys consent-gated GA4 and Meta Pixel signals using Consent Mode v2 for comprehensive local business tracking.

How do I auto-track phone, mail, and WhatsApp clicks on a local business website?

Auto-delegation tags phone, mail, and WhatsApp links plus outbound clicks automatically, supporting a consistent vocabulary of conversion and engagement events across the site.

How do I improve Google Ads smart bidding with conversion value hints?

You can improve optimization weighting by converting property size selections into indicative GBP values, providing smart-bidding value hints that enhance ROAS reporting accuracy.