> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.poptin.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to track your poptin conversions in Google Analytics (GA events) with Google Tag Manager?

After you made sure our code is installed on your website, then follow these steps:

1. Create a new Tag

2. Give it any name you want

3. In the Tag Configuration choose Universal Analytics

![](https://storage.crisp.chat/users/helpdesk/website/7a34af3b43dae400/image_9vjzxh.png)

4. Then set up these fields:

![](https://storage.crisp.chat/users/helpdesk/website/7a34af3b43dae400/image_z2rlbc.png)

In the last field you will need to click New Variable enter your UA tracking ID.

5. Then in the trigger section, this is what you need to define:

![](https://storage.crisp.chat/users/helpdesk/website/7a34af3b43dae400/image_1ubo3gb.png)

Note: If you want to track when your visitors closed that poptin, replace poptin-form-submit-button for

Close button:
poptin-form-close-button

X button:
close-x-button / close-icon

and instead of "PoptinSubmit" in the Action field (on the previous step), you can call it "PoptinClose".

6. Save and Publish, and that's it :) 

Now you will see all the Events in your Google Analytics

![](https://storage.crisp.chat/users/helpdesk/website/7a34af3b43dae400/image_6yncq.png)

Don't forget to create a Goal for it.

You can read more here: http://www.clixmarketing.com/blog/2017/12/19/time-to-start-tracking-your-button-clicks-in-google-tag-manager/