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.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- 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
- Ask for any missing context from the list above before starting.
- 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.
- 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.
- 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).
- Explain how to create goals (conversion events) for the specific tracking needs provided.
- 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?