Sometimes we may have already tracked conversions through GTM using dataLayer events, and we would like to use these conversion events to create conversion goals in Convert.
First, let say that an event called TestAction is being pushed into the dataLayer in the following way:
window.dataLayer = window.dataLayer || 
Open your experiment on the Experience Summary and click on the Goal Editor to open it:
Access the Goal Templates:
- Go to your Google Tag Manager account at https://tagmanager.google.com/ and select the account you are going to work on.
Click on the "ADD A NEW TAG" button:
Click on the "Choose a tag type to begin setup":
Scroll down and select the "Custom HTML" option.
When the following dialog opens, select the "ADD TRIGGER" option:
A list of possible triggers should appear. Click on the "+" icon on the upper left, and select the trigger type:
Scroll down and select the "Custom Event" option:
Re-save your whole Tag, and you are done.
Test your goal by triggering the GTM dataLayer event, and see if the goal is triggered in your experiment.
You can also access Goals by clicking on Goals in the sidebar menu.