Record pageviews into Google Analytics for funnels and websites
Record pageviews from your funnels and websites in Google Analytics 4 by creating a GA4 property and web data stream, then pasting Google's gtag.js tag into your funnel or website head tracking code. You'll need basic Google Analytics knowledge to follow along; if you're new to it, start with Google's GA4 beginner's guide.
Set up your GA4 property and data stream
Create the property and web data stream in Google Analytics before you add any tracking code.
Log in to Google Analytics.
Open Admin Settings.
Click Create Property and enter the name of the property.
Open Data Stream from the left menu.
Choose the Web option and enter the URL of the funnel or website you want to track.
Name the stream and click Create Stream.
Add the tracking code to your funnel or website
Google provides a gtag.js script for the stream you just created. Paste it into your funnel or website head tracking code so pageviews are recorded. Alternatively, follow Google Tag Manager's instructions to load the tag instead. The script content is shown in Google Analytics when you create the stream; copy it from there.