How to setup transaction goals

Created by LiRou C, Modified on Thu, 5 Sep at 1:01 AM by LiRou C

Tracking Purchases: Best Practices and Methods

At Mida, we understand the importance of accurately tracking purchases for effective A/B testing. Here are our recommended methods, starting with the most accurate:



1. API Integration (Most Accurate Method): 

Using our API is the most precise way to track purchases. It provides detailed data and ensures the highest level of accuracy.



We strongly recommend this method for the best results. However, we understand that not all users have immediate access to their site's source code. If that's the case for you, consider the following alternative approaches:



2. Google Tag Manager (GTM) Integration

If you're already tracking revenue data in Google Tag Manager, you can easily send GTM events to Mida. This method allows you to leverage your existing setup and seamlessly integrate with our platform.


If you don't have immediate access to your site's source code or aren't using GTM, consider these URL-based approaches:



3. URL-Based Tracking


a) Specific Page URL: Ideal when there's a consistent URL for completed transactions. 


  • Example: Page URL: https://example.com/complete-order


Simply use this specific page URL as your goal for tracking successful transactions.


b) Wildcard URL: Useful when the purchase confirmation page URL varies.


  • Example: Wildcard URL: https://example.com/complete-order/%


The '%' sign represents varying elements in the URL, allowing you to track all transactions effectively.



While these alternative methods can be effective, remember that the API method provides the most accurate and detailed purchase tracking. If possible, we recommend working with your development team to implement the API solution for optimal results.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article