Skip to main content
All CollectionsAdvertiser FAQ
Tracking Cointraffic Campaign Performance Using Google Tag Manager and S2S Pixel
Tracking Cointraffic Campaign Performance Using Google Tag Manager and S2S Pixel

This step-by-step guide will help you track Cointraffic campaign performance using Google Tag Manager (GTM) by capturing the {CLICK_ID} query parameter and sending it back to Cointraffic via a Custom HTML tag.

Kate avatar
Written by Kate
Updated over 2 months ago

Step 1: Create a Custom Variable to capture the "ct_click_id" Query Parameter

1.Open GTM Workspace: In your Google Tag Manager workspace, go to Variables in the left-hand menu.

2.Create a New Variable: Under User-Defined Variables, click New.

3.Configure the Variable:
NOTE: Pay attention to the variable name, we will use it later in our step-by-step guide.

  • Click Choose a variable type and select URL.

  • Under Component Type, choose Query.

  • In the Query Key field, enter: ct_click_id, or if you use a custom query parameter to pass {CLICK_ID} use it instead of ct_click_id.

  • Click Save.

4.Verify the Variable: You should now see the variable listed under User-Defined Variables (in our case, Cointraffic - Click ID).

Step 2: Create a Tag to Send the "ct_click_id" value to Cointraffic

1.Navigate to Tags

  • In your GTM workspace, go to Tags from the left-hand menu.

  • Click New to create a new tag.

2.Configure the Tag

  • Name your tag descriptively (e.g., Cointraffic Tracking Pixel).

  • Under Tag Configuration, click Choose a tag type.

  • Scroll down and select Custom HTML.

3.Insert the Cointraffic Tracking Code:

  • In the HTML field, add the following tracking code:

    <img src=”https://apps-pxl.ctengine.io/e?k=UNIQUE_PIXEL_ID&ev=EVENT_NAME&click_id={{Cointraffic - Click ID}}” alt=”” border=”0” height=”1” width=”1” style=”display: none !important;” />

    NOTE: The following code will insert an invisible tracking pixel (<img /> tag) on your page whenever the tag is triggered. This sends an event update to the Cointraffic network, ensuring that campaign performance is properly tracked.

    For a detailed setup guide, refer to our [S2S Tracking Pixel Setup].

4.Reference the Variable: Ensure the variable {{Cointraffic - Click ID}} (created in Step 1) is correctly included in the tag.

5.Set Up Triggering: Define when the tag should fire (e.g., on page load or form submission, depending on your tracking needs).

6.Save and Publish: Click Save, then Submit and Publish your changes in GTM.

Did this answer your question?