Skip to main content

Tracking Cointraffic Campaign Performance Using Google Tag Manager and S2S Pixel

Track Cointraffic campaign performance using GTM & S2S Pixel. Learn to capture & transmit the {CLICK_ID} via Custom HTML or S2S.

Kate avatar
Written by Kate
Updated over a month 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?