Articles on: Integrations

How to integrate Poptin with GA4?

Please follow the steps below to track Poptin Conversions on GA4.

In Edit Poptin Design scroll down to Emails and Integrations and add the code below in the Conversion Code box and Publish Changes to save everything.

<script> gtag('event', 'sign_up', { 'event_category': 'PoptinCategory', 'event_action': 'PoptinAction' }); </script>




In Google Analytics navigate to Configure > Events > Create Event.



In case you get the No Data Streams notification after clicking on Create Event you need to create a data stream. Navigate to Settings > Data Streams > Add Data Stream.



In the new dialog click on Create.



Use the following details for creating the event.

Custom Event Name: PoptinName
Parameter: event_name
Operator: equals
Value: PoptinAction



You can then test your popups and you should be able to see events getting tracked as per the screenshot below.



Finally, you need to mark your event as a conversion to track the conversions in your Google Analytics.



Note: If you use Google Analytics Universal please check the link https://help.poptin.com/article/show/50471-how-to-integrate-your-poptin-conversion-with-google-analytics

Not working? Check the steps below.

Make sure you have the Google Tag (gtag.js) installed on your website either via Custom HTML or Official Google Tag. You can also manually install it by adding the code below in step 2 manually to your website

If the GA4 is installed via GTM with the built-in tag, you can try to install it manually on the website via a custom HTML tag. (Make sure you replace G-XXXXXXXXXX with your Measurement ID.

<!-- Google tag (gtag.js) -->

<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XXXXXXXXX');
</script>

Updated on: 15/11/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!