Skip to main content
All CollectionsHow To - Advanced GuidesGoogle
Click & Conversion Tracking with Google Tag Manager
Click & Conversion Tracking with Google Tag Manager

How to set up conversion tracking using GTM (Google Tag Manager).

Dasha Shareyko avatar
Written by Dasha Shareyko
Updated over a month ago

Overview

This integration enables tracking implementation through Google Tag Manager (GTM) for the Everflow Javascript SDK. It allows placement of tracking scripts for:

  • Click tracking on landing pages

  • Conversion tracking on confirmation pages

  • Custom event tracking throughout the customer journey

  • Variable data collection and transmission

Key Benefits

Tracking Capabilities

  • Comprehensive tracking through Javascript SDK

    • Click tracking

    • Conversion tracking

    • Custom event tracking

  • Support for direct linking in Media Buying campaigns

  • Flexible variable management

  • Centralized tag management

Implementation Advantages

  • Simplified script deployment

  • No direct code modification required

  • Centralized tracking management

  • Dynamic variable handling

Who Is This For?

Primary Users

  • Advertisers needing comprehensive tracking solutions

    • Click tracking implementation

    • Conversion tracking setup

    • Custom event monitoring

  • Affiliates running Media Buying campaigns

    • Direct linking requirements

    • Advanced tracking needs

Secondary Users

  • Marketing teams managing tracking implementation

  • Technical teams overseeing tag management

  • Analytics teams requiring data collection

Prerequisites

Technical Requirements

  • Google Tag Manager installed on website

  • Basic understanding of Javascript SDK

  • Access to GTM container management

Everflow Setup

  • Active offer created in Everflow

  • Landing page configured as Base Destination URL

  • Javascript SDK selected as Conversion Method

Knowledge Requirements

  • Basic GTM functionality understanding

  • Tag implementation experience

  • Variable management familiarity

Time and Resource Estimation

  • Setup Time: 30-45 minutes

  • Technical Expertise Level: Intermediate

  • Required Team Members:

    • Marketing operations specialist

    • Technical implementation lead (if available)

Implementation Considerations

  • Proper trigger configuration is crucial

  • Variable setup depends on specific tracking needs

  • Testing in GTM preview mode recommended

  • Regular validation of tracking implementation

Click Tracking

1. Once the offer has been created, please ensure that Javascript SDK is selected as the Conversion Method

2. Under the tracking card in the offer, copy the click script:

<script type="text/javascript"
src="https://www.TRACKING_DOMAIN.com/scripts/sdk/everflow.js"></script>

<script type="text/javascript">
EF.click({
offer_id: EF.urlParameter('oid'),
affiliate_id: EF.urlParameter('affid'),
sub1: EF.urlParameter('sub1'),
sub2: EF.urlParameter('sub2'),
sub3: EF.urlParameter('sub3'),
sub4: EF.urlParameter('sub4'),
sub5: EF.urlParameter('sub5'),
uid: EF.urlParameter('uid'),
source_id: EF.urlParameter('source_id'),
transaction_id: EF.urlParameter('_ef_transaction_id'),
});
</script>

In GTM, set up a new container or edit an existing container, and add a 'New Tag':

3. Name the tag, then edit the 'Tag Configuration'.

4. Choose the Custom HTML tag type:

5. Add the Click Script.

6. Set up the following Triggering to populate this click script on all pages & Save.

Conversion & Event Tracking

1. In GTM, select New Tag > Custom HTML and copy the conversion or event script from the offer.

<script type="text/javascript"
src="https://www.strcli9k.com/scripts/sdk/everflow.js"></script>

<script type="text/javascript">
EF.conversion({
aid: AID,
adv_event_id: ADV_EVENT_ID,
// amount: REQUIRED_FOR_RPS_CPS,
// email: 'EMAIL',
// coupon_code: 'COUPON_CODE',
// order_id: 'ORDER_ID',
// adv1: 'OPTIONAL',
// adv2: 'OPTIONAL',
// adv3: 'OPTIONAL',
// adv4: 'OPTIONAL',
// adv5: 'OPTIONAL',
});
</script>

2. When setting up the Triggering, this will be different for each brand’s website flow. The trigger can be set up as a Page View specifically for the confirmation page.

Example:

Once the Triggering has been configured to fire on the Confirmation Page.

3a. Setting up Variables:

Variables give the ability to pass values from the advertiser back into Everflow using the tags using default or custom GTM variables.

User-defined variables - The advertiser would need to create a user-defined variable, and be able to track and store those values, either locally or in the cookie, so that they may be passed back.

This is where you set up additional variables to be collected and passed back such as the Order Amount, Email, Order ID, Coupon Code, etc.

3b. These variables can then be used in your Conversion or Event Script to script to fire those variables into Everflow with the {{brackets}}

4. Once the click & conversion scripts have been configured, select Submit > Publish to make these changes live.

Did this answer your question?