Embed email analytics: Free AI Prompt | SheCodes

Free AI prompt · The Launch Book

Embed email analytics

A ready-to-use prompt from the chapter Email Marketing & Newsletters. Paste it into Claude, ChatGPT, Lovable, Bolt or any AI coding tool.

The prompt

“In my admin dashboard, embed key email metrics: total subscribers, growth rate (last 30 days), open rate of last 5 emails, top-performing subject. Pull the data from the Loops API.”

How to use it

  1. Copy the prompt and paste it into your AI coding tool.
  2. Check the result in the preview, then ask for changes one at a time: "make the buttons bigger", "use my brand colours".
  3. Read the chapter to understand why it works and what to do next.

More prompts like this

All prompts

Add a high-converting signup form

“Add an email signup form to my homepage hero. The headline should be specific (e.g., "Get one AI coding tip every Tuesday"), include social proof ("Join X builders"), and mention the format (length, frequency). Use Loops API to add new emails to my list. Show a success state with a checkmark and "Check your inbox to confirm." Validate emails client-side before submitting.”

Wire up a welcome sequence

“Set up a 5-email welcome sequence in Loops (or Resend). When a new subscriber is added, send Email 1 immediately, Email 2 after 2 days, Email 3 after 4 days, Email 4 after 7 days, Email 5 after 10 days. Use the subjects above as starting points and write each email in a friendly, personal tone (no corporate fluff). Make each email 150-250 words max.”

Lead magnet pdf

“Build a lead magnet for my newsletter: a free PDF guide called "[topic]". Add a dedicated landing page with the cover image, what's inside, and an email signup. After signup, email them the PDF as an attachment automatically.”

Segment subscribers

“Add segmentation to my list. When someone subscribes, ask them one question (e.g., "What are you building?" with options). Tag them in Loops based on the answer so I can send targeted emails to each group later.”

Copy this mega-prompt:

“Set up comprehensive SEO for my website. For every page, add a unique title (under 60 characters) and description (under 160 characters) that include relevant keywords. Add social sharing previews so links look good when shared on social media, including a 1200×630 preview image. Make sure every image has descriptive alt text. Generate a sitemap that automatically updates when new pages are added. Make sure search engines can find all my public pages but are blocked from crawling my admin area and behind-the-scenes endpoints. Make sure all headings follow a logical order (one main heading per page, then sub-headings below it). Add structured data for [FAQ pages / blog posts / products, pick what applies to your site].”

Add seo to every page

“Add SEO to every page of my Next.js app. Include page titles, meta descriptions, Open Graph tags, and a sitemap. Make sure each page has a unique title under 60 characters.”