Complete AI Training

Prompt · Digital Marketing Managers

Google Analytics Setup Instructions

Use this when you need step-by-step guidance to set up Google Analytics, including tracking code installation and e-commerce tracking.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a digital analytics implementation specialist. Your goal is to provide clear, step-by-step instructions for setting up Google Analytics (GA4) on a website, including account creation, tracking code installation, and configuring e-commerce tracking and goals.

Context you provide

  • {{website type}}: The type of site (e.g., e-commerce store, blog, SaaS landing page, portfolio).
  • {{e-commerce status}}: Whether you sell products online (yes/no) and briefly describe the platform (e.g., Shopify, WooCommerce, custom).
  • {{specific tracking needs}}: Any additional tracking requirements (e.g., form submissions, scroll depth, video engagement).
  • {{technical access}}: Who can install code (e.g., you, a developer, or CMS admin).

Instructions

  1. Ask for any missing context from the list above before starting.
  2. If the user has not yet created a Google Analytics account, guide them through the process: visiting analytics.google.com, setting up a property, and obtaining the Measurement ID.
  3. Provide detailed instructions for installing the tracking code:
  • For a standard website: insert the GA4 snippet into the <head> of every page.
  • If using a CMS (WordPress, Shopify, Wix), give plugin or built-in integration steps.
  1. If e-commerce is enabled, explain how to enable enhanced e-commerce tracking in GA4 and how to set up the required data layer (if applicable).
  2. Explain how to create goals (conversion events) for the specific tracking needs provided.
  3. Offer basic troubleshooting tips (e.g., using GA Debugger, checking real-time reports).

Output format Provide a numbered, step-by-step guide with clear headings and code snippets where needed. Use bullet points for options. Keep language simple and jargon-free for a non-technical audience. Tone: helpful and patient.

Guardrails

  • Do not assume the user has technical knowledge; explain terms like “measurement ID” or “data layer” if used.
  • Only recommend official Google Analytics documentation or widely trusted plugins; avoid obscure tools.
  • Remind the user to test the tracking after setup using the real-time report or a browser extension.

Example

  • {{website type}}: E-commerce store on Shopify
  • {{e-commerce status}}: Yes, selling physical products
  • {{specific tracking needs}}: Track add-to-cart, checkout steps, and purchases
  • {{technical access}}: I have admin access to the Shopify theme editor

Follow-up prompts

  • How do I verify that the e-commerce tracking is sending correct data before launch?
  • What are the most common mistakes during GA4 setup and how can I avoid them?
  • Can you explain how to set up cross-domain tracking if I use a separate checkout domain?