Главная Гибкий таргетинг Возможности Форматы TMA Главная Домонетизация TMA Блог Главная страница Main page Flexible targeting Opportunities Formats TMA Main page Extra monetization TMA Blog Main page
Blog

BLOG ]

The MyBid blog is your expert guide to adult, dating, and gambling traffic. We share real-world case studies, insider tips, and practical guides for our ad network. Learn how to master these tough verticals and run profitable campaigns with our tools. No theory, just actionable advice to boost your profit.
Google Tag Manager (GTM) for Conversion Tracking

[ Google Tag Manager (GTM) for Conversion Tracking ]

15.11.2025 How to start? Affiliate Marketing 6 min

Google Tag Manager (GTM) is a free analytics tool from Google that simplifies the process of adding and managing tracking codes on your website or mobile app. For many marketers, GTM acts as an ad tracker and even as an ad tracker online, because it consolidates multiple scripts and events into one central platform.

By using GTM, you can manage tags for Google Analytics, Yandex.Metrica, or other third‑party systems without editing your site’s code manually. This makes it a practical ad spend tracker, helping you understand where your budget goes and how to optimize campaigns.

Key functions of GTM:

1. Install analytics scripts without manual code edits.

2. Quickly track ad performance and verify which tags are firing.

3. Test and adjust triggers to answer questions like how do I track the performance of ad creatives.

Integrate with social and video platforms to measure how to track Facebook ad performancehow to track YouTube ad campaign success, and even how to track ROI from social media ad campaigns.

Provide centralized data collection, which enhances conversion tracking and supports online conversion tracking across multiple channels.

Benefits of GTM:

1. Saves time and reduces reliance on developers.

2. Offers a simple interface for managing multiple accounts and containers.

3. Improves accuracy of conversion tracking by ensuring all scripts fire correctly.

4. Highlights the benefits of conversion tracking, such as transparency, ROI measurement, and campaign optimization.

5. Supports advanced setups like keyword conversion tracking, giving you insights into which search terms drive the most valuable actions.

In short, GTM is more than just a tag manager — it’s a flexible tool that helps answer what is conversion trackingwhat tools can help me track ad performance, and ultimately how can conversion tracking help users achieve better results.

To set S2S tracking through Google Tag Manager, mind the following:

1. All actions need to be performed on the same website.

2. You need to have the (correct) GTM tag installed on the website.

3. You need to have trigger points configured in GTM, for example, REG and FTD.

4. Add a script that triggers on all pages – that stores a cookie with the MyBid Visitor ID.

5. Add a script that fires back the MyBid Visitor ID.

How to set up Google Tag Manager

Create a GTM Account

1. Go to the Google Tag Manager website.

2. Click on “Start for free” and sign in with your Google account.

3. Create a new account by entering your account name and setting up a container (which can be your website or app).

Install GTM on Your Website

1. Once your container is created, GTM will provide you with two snippets of code.

2. Copy and paste the first code snippet as high in the of the page as possible.

3. Paste the second code snippet immediately after the opening tag.

4. Save your changes and publish your container.}

5. Verify Installation

6. Use the GTM preview mode to ensure the code is working correctly.

7. In GTM, click on “Preview,” enter your website URL, and then click “Connect.”

Your website will open in a new tab with a debug panel at the bottom showing which tags are firing.

Create the Goal ID

In your MyBid advertiser account, navigate to the “Goals” tab. This allows you to create the conversion tracking code to be used in your postback URL

Click on the “+ Create conversion goal” button

The form to create a new conversion contains the following:
image.png

Give your goal a clear and descriptive name that reflects its purpose

Choose the Conversion type

Choose the Value type. The payout of the conversion. Used to determine the Revenue and ROI (Return on Investment) of the campaigns that use this goal in their funnel. You can choose from the following options:

1. No Value / No amount will be associated with the goal when logged.

2. Fixed: A fixed amount provided by you will be associated with the goal when logged.

3. Dynamic: A dynamic amount will be associated with the goal when logged.

4. Once you have selected all the settings for this Conversion Goal, click Next. You’ll see the postback URL that you need to use to send conversions.

5. Click on the “Copy & done” button to save the Conversion goal and copy the postback URL.

Now you are ready to set up your conversion tracking system. Every Conversion Goal you create in your account has a unique ID (goal_id), which will be used to associate the user action with the corresponding Goal.

Custom HTML Tag for collecting a cookie

Create a New Custom HTML Tag:

1. In your GTM dashboard, click on “Tags” and then “New”

2. Name your tag something like “MyBid Visitor ID”

3. Click on “Tag Configuration” and select “Custom HTML”

Add the Script

Copy and paste the following script into the HTML field:

<script>
var value = new URL(location.href).searchParams.get("utm_mbid");
if (value) {
var date = new Date();
date.setTime(date.getTime() + (30*24*60*60*1000));
document.cookie = "mybid_visitor_id=" + (value || "") + "; expires=" + date.toUTCString() + "; path=/";
}
</script>

Explanation

This script retrieves the “utm_mbid” parameter from the URL and stores it in a cookie named “mybid_visitor_id” with a 30-day expiration.

Set the Trigger

Click on “Triggering” and choose “All Pages.”

Save the tag and publish your changes.

Custom HTML Tag for Registration Event

Create Another Custom HTML Tag

1. In your GTM dashboard, click on “Tags” and then “New”

2. Name this tag something like “Registration Event”

3. Click on “Tag Configuration” and select “Custom HTML”

Add the Script

Copy and paste the following script into the HTML field:

<script>
var visitorId = ('; ' + document.cookie).split('; mybid_visitor_id=').pop().split(';')[0];
if (visitorId) {
var xhr = new XMLHttpRequest();
xhr.open('GET', 'https://postback.mb-d.com/api/v1/postback?goal_id=ADD_YOUR_CONVERSION_ID_HERE&cost=ADD_YOUR_VALUE_HERE&click_id=' + encodeURIComponent(visitorId), true);
xhr.send();
}
</script>

Explanation

This script retrieves the visitor ID from the cookie and sends it back to MyBid.

Add value and conversion goal ID

1. Replace “ADD_YOUR_CONVERSION_ID_HERE” with your conversion goal ID

2. Replace “ADD_YOUR_VALUE_HERE” with your conversion value:

3. Use {cost} if the value type is Dynamic

4. Use the exact value if the value type is Fixed

5. Delete &cost=ADD_YOUR_VALUE_HERE if the value type is No Value

Set the Trigger

1. Choose the appropriate trigger for the registration event (e.g., form submission or button click).

2. Save and publish your tag

Target URL Format

Ensure your campaign target URL includes the “utm_mbid” parameter like this:

https://site.domain/?utm_mbid={%click_id%}

Why GTM matters for Conversion Tracking

Understanding what is conversion tracking is essential for any performance marketer. GTM makes it easier to implement and manage conversion tracking scripts, ensuring that every event is captured accurately. The benefits of conversion tracking include:

1. Transparency into ad spend and campaign outcomes.

2. The ability to identify which creatives perform best, answering how do I track the performance of ad creatives.

3. Smarter budget allocation and scaling of profitable campaigns.

4. Insights from keyword conversion tracking and online conversion tracking across multiple platforms.

5. Clear answers to how can conversion tracking help users: it empowers data‑driven decisions and maximizes ROI.

In practice, GTM transforms guesswork into measurable strategy, helping marketers fully understand how to track ROI from social media ad campaigns and optimize every channel.

Author's avatar
MyBid Editorial Team
Google Tag Manager (GTM) for Conversion Tracking

[ Google Tag Manager (GTM) for Conversion Tracking ]

How to set up conversion tracking with CPV Lab

[ How to set up conversion tracking with CPV Lab ]

Conversion Goals: How to Track and Optimize Campaign Performance

[ Conversion Goals: How to Track and Optimize Campaign Performance ]

Top 7 Mistakes Beginners Make in Traffic Arbitrage and How to Avoid Them

[ Top 7 Mistakes Beginners Make in Traffic Arbitrage and How to Avoid Them ]

For Advertisers: Drive Sales with Verified, Bot-Free Traffic ]

Sticker LEARN MORE

For Publishers: Maximize Revenue with Predictable Payouts ]

Sticker LEARN MORE

Latest Posts ]

Google Tag Manager (GTM) for Conversion Tracking How to set up conversion tracking with CPV Lab Conversion Goals: How to Track and Optimize Campaign Performance Top 7 Mistakes Beginners Make in Traffic Arbitrage and How to Avoid Them