To track GA4 events, we need to add a simple javascript code to the website.
I add my code to the thank you message of the forms.
When a form is submitted it fires a thank you event off to Google.
We have to already be using the main website tracking code that we added in the prior lesson.
To create a Google Analytics event using tracking code in WP Fluent Forms and add it to the thank you message, follow these steps:
Log in to your WordPress admin dashboard.
Navigate to WP Fluent Forms, and either create a new form or edit an existing one.
In the form editor, click on the "Settings & Integration" tab.
Go to the "Form Settings" Tab
In the "Confirmation Settings" section and select "Message to show" as the form submission behavior.
Select the Text view
Add the javascript tracking code from my course
[ Ссылка ]
Ещё видео!