Creating a Convert Goal from a GTM Data Layer event

Issue Explanation

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.


We can do this by implementing a GTM tag with a Convert JavaScript Triggered Goal code that would be used to trigger the GTM dataLayer event that we want to track.

First, let say that an event called TestAction is being pushed into the dataLayer in the following way:

window.dataLayer = window.dataLayer || []
event: 'TestAction'

  1. Create the Convert Javascript Triggered Goal:

    Open your experiment on the Experience Summary and click on the Goal Editor to open it. Access the Goal Templates:


    Select the JavaScript Triggered Goal Template:


    Name your new goal and save it. Open your newly-created goal. Select and copy the JavaScript code from the goal and paste it somewhere to later create your GTM Tag.


  2. Go to your Google Tag Manager account at and select the account you are going to work on.

    Click on the "ADD A NEW TAG" button:

    save image

    Click on the "Choose a tag type to begin setup":

    save image

    Scroll down and select the "Custom HTML" option.

    save image

    Paste the code from the Convert JavaScript Triggered Goal into the HTML Section and name your tag:

    save image

    When the following dialog opens, select the "ADD TRIGGER" option:

    save image

    A list of possible triggers should appear.  Click on the "+" icon on the upper left, and select the trigger type:

    save image

    Scroll down and select the "Custom Event" option:

    save image

    Re-save your whole Tag, and you are done.
  3. 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 top tab next to Experiences.
Need assistance? Start a conversation with our Support Team.

Reliably Convert More Site Visitors, Even If Everything Else is Changing in Your Business.

✓ No Credit Card  ✓ Easy Set-Up  ✓ Access All Features


  • Avatar

    can i calculate the GTM event fired times?