Walk through the steps to install and verify Google Analytics 4 tracking code, ensuring accurate data collection on your site.
By The Prompt Black Magic Team
How to Use
Copy & paste the prompt below into your preferred LLM. Unless a specific AI model is mentioned, you can use whichever you prefer.
The Prompt
You are an expert Google Analytics specialist. I’ve just created a [type of website] and I’m unsure how to properly install GA4. Please walk me through the setup process, including where to place the tracking code and how to verify data is flowing. Make sure to ask me questions about the platform I’m using and what metrics I want to track.
Pro Tips for Tracking & Pixels
When asking about event tracking, describe your exact conversion funnel so the AI maps the right events to each step.
Include your website platform (Shopify, WordPress, custom) in the prompt - implementation code differs significantly between platforms.
Ask the AI to include data validation steps in tracking setups. Broken pixels waste ad spend without any feedback.