How to Set Up Conversion Tracking for Your White Label Account
This guide will help you configure Google Tag Manager (GTM) and conversion tracking for your White Label account. Follow the steps below to ensure proper tracking and reporting for orders placed on your White Label platform.
Step 1: Prerequisite
You must have a Google Tag Manager (GTM) account and provide your GTM ID to us. Your GTM ID looks like this: GTM-XXXXXXX
.
- Log in to your Google Tag Manager account or create one.
- Locate your GTM ID from the top-right corner of your GTM dashboard.
Step 2: Provide Your GTM ID
Send your GTM ID to us. Once we save this against your White Label account:
- GTM will automatically load on your White Label order form.
- GTM will trigger whenever a client places an order.
Step 3: Understanding the DataLayer
Whenever a new order is placed, the system pushes transaction data to the DataLayer. This includes details like:
- Order Value
- Transaction ID
- Tax
- Currency Code
- Item Details (e.g., service name, quantity, and price)
Below is a sample structure of the data pushed to the DataLayer:
dataLayer.push({ event: 'purchase_enhanced_conversion', order_value: 100, order_id: '12345', currencyCode: 'USD', tax: 5, items: [ { item_id: '001', item_name: 'Translation Service', item_category: 'Translation', quantity: 1, price: 95 } ], enhanced_conversion_data: { email: 'client@example.com' } });
Step 4: Setting Up DataLayer Variables in GTM
You will need to create variables for each DataLayer item to make the data accessible in your Tags. Here's how:
- Log in to GTM and go to your container.
- Navigate to Variables > New Variable.
- Choose Data Layer Variable as the variable type.
- Assign the following variable names and set the Data Layer variable name accordingly:
Variable Name | Data Layer Variable Name |
---|---|
Transaction ID | order_id |
Order Value | order_value |
Currency Code | currencyCode |
Tax | tax |
Item Name | items[0].item_name |
Item Price | items[0].price |
Item Quantity | items[0].quantity |
Step 5: Adding Analytics and Conversion Tags
Now that you’ve created the necessary variables, you can configure Tags for your Analytics platforms (e.g., Google Analytics, Google Ads, Meta, LinkedIn). Follow these steps:
Google Analytics Example (GA4)
- Go to Tags > New > Google Analytics: GA4 Event.
- Set the event name to
purchase_enhanced_conversion
. - Map your DataLayer variables to the corresponding GA4 parameters:
- Transaction ID →
transaction_id
- Order Value →
value
- Currency →
currency
- Transaction ID →
- Set the trigger to fire the Tag:
- Choose Triggering > New Trigger.
- Select Custom Event.
- Enter the event name:
purchase_enhanced_conversion
.
Meta (Facebook) Example
- Go to Tags > New > Custom HTML.
- Paste the following code into the HTML editor:
<script> fbq('track', 'Purchase', { value: {{Order Value}}, currency: '{{Currency Code}}' }); </script>
- Set the trigger to fire the Tag:
- Choose Triggering > New Trigger.
- Select Custom Event.
- Enter the event name:
purchase_enhanced_conversion
.
LinkedIn Example
- Go to Tags > New > Custom HTML.
- Paste the following code into the HTML editor:
<script> _liq.push(['track', 'Purchase', { order_id: {{Transaction ID}}, value: {{Order Value}}, currency: '{{Currency Code}}' }]); </script>
- Set the trigger to fire the Tag:
- Choose Triggering > New Trigger.
- Select Custom Event.
- Enter the event name:
purchase_enhanced_conversion
.
Bing Example
- Go to Tags > New > Custom HTML.
- Paste the following code into the HTML editor:
<script> uetq.push({ 'ec': 'Purchase', 'ea': 'Completed', 'el': {{Transaction ID}}, 'ev': {{Order Value}} }); </script>
- Set the trigger to fire the Tag:
- Choose Triggering > New Trigger.
- Select Custom Event.
- Enter the event name:
purchase_enhanced_conversion
.
Step 6: Verifying the Setup
Once your Tags and Triggers are configured:
- Use the GTM Preview Mode to test your implementation.
- Place a test order to verify that the DataLayer is populated correctly.
- Check your Analytics platform to ensure events are recorded as expected.
Summary
By completing these steps:
- You’ll track orders placed on your White Label platform.
- You’ll be able to integrate with Analytics platforms like GA, Google Ads, or Meta.
- Events will trigger automatically whenever a purchase is made, ensuring accurate conversion tracking.
For any assistance, feel free to reach out!