Dynamic Profit Tracking with server GTM
by TheTechyMarketers
Welcome to the first open-source, plug-and-play profit tracking system in the industry.
Use our custom sGTM templates to calculate gross order profit and costs in real time with 99% accuracy.
- Activate profit metrics in Google ads and Paid Social, GA4, Google Sheets and more.
- Virtually no ongoing costs. $10 per 5000 orders.
- Successfully tested on 30k orders with peaks of 1700 orders per day.
- Works on any CMS (Shopify, WooCommerce, etc).
- Difficulty level: Easy. No-code.
- Implementation time: Once you know how it works it will take you approx. 30 minutes to implement this system.
- Prerequisites: Basic sGTM knowledge. You don’t need to be an expert to set it up.

Dynamic Profit Tracking with server GTM
by TheTechyMarketers
Welcome to the first open-source, plug-and-play profit tracking system in the industry.
Use our custom sGTM templates to calculate gross order profit and costs in real time with 99% accuracy.
- Activate profit metrics in Google ads and Paid Social, GA4, Google Sheets and more.
- Virtually no ongoing costs. $10 per 5000 orders.
- Successfully tested on 30k orders with peaks of 1700 orders per day.
- Works on any CMS (Shopify, WooCommerce, etc).

- Difficulty level: Easy. No-code.
- Implementation time: Once you know how it works it will take you approx. 30 minutes to implement this system.
- Prerequisites: Basic sGTM knowledge. You don’t need to be an expert to set it up.
Profit data = better results
- Access dynamic order profit metrics in your analytics stack. Say goodbye to inaccurate metrics such as ‘average profit margin’.
- Use order profit data to create dynamic customer profit metrics for strategic optimisation.
- Optimise your Google Ads and Paid Social campaigns for profit instead of revenue.
- Perform high-impact profit optimisations via advanced cost analysis.
- Track and store the dynamic profit of each SKU.
- Track the real cost of refunds in your store and adjust order profit metrics in GA4.
- Create marketing and business profit-based metrics and KPIs: Contribution margin, profitMER, gross and net order profit, customer gross and net profit and more.
Profit data = better results
- Access dynamic order profit metrics in your analytics stack. Say goodbye to inaccurate metrics such as 'average profit margin'.
- Use order profit data to create dynamic customer profit metrics for strategic optimisation.
- Optimise your Google Ads and Paid Social campaigns for profit instead of revenue.
- Perform high-impact profit optimisations via advanced cost analysis.
- Track and store the dynamic profit of each SKU.
- Track the real cost of refunds in your store and adjust order profit metrics in GA4.
- Create marketing and business profit-based metrics and KPIs: Contribution margin, profitMER, gross and net order profit, customer gross and net profit and more.
This system aims for 100% profit data accuracy
See the level of granularity you get with our custom templates.
The Shipping Cost calculator template offers 6 methods for calculating shipping costs. This covers every business case.

This template also tracks “hidden” metrics such as fuel surcharge and additional shipping costs.
* Fuel surcharge can increase base shipping costs by 10-40%

The Transaction Cost calculator will take into account the fee rate, fixed fee and currency conversion fee.

Our Refund Profit calculator will calculate additional shipping and handling costs. Then it will look for restocked items and “pay back” the landed cost and tax from each item. You will be able to adjust profit in GA4, Google Sheets, etc.

Our templates have in-built safety mechanisms. No calculation will fail.

This system aims for 100% data accuracy
See the level of granularity that you get with our custom templates
The Shipping Cost calculator template offers 6 methods of calculating shipping costs. This covers every business case.

Additionally, it tracks hidden metrics such as fuel surcharge and additional costs.
* Fuel surcharge can increase base shipping costs by 10-40%

The Transaction Cost calculator will take into account the fee rate, fixed fee and currency conversion fee.

Our Refund Profit calculator will calculate additional shipping and handling costs. Then it will look for restocked items and “pay back” the landed cost and Tax from each item. You will be able to adjust profit in GA4, Google Sheets, etc.

Our templates have in-built safety mechanisms. No calculation will fail.

Powered by Supabase
The real-time database used by industry-leading tools such as Lovable.dev
- Free and extremely easy to use. No-code.
- Easily import COGS data as a CSV file in 3 clicks.


Ready to activate dynamic profit data?
Learn how to send profit and costs to any marketing tool

Enable daily Profit analytics in Looker Studio

Optimise ad campaigns for profit


Hi, this is Javier.
My mission is to democratise dynamic profit tracking.
After 10 years working in the e-commerce marketing space I can guarantee you that having accurate profit metrics available will lead to better results.
Unfortunately, the industry continues to optimise with either revenue metrics or misleading average profit metrics.
Let’s change that today.
LinkedIn: /javier-garijo/

Hi, this is Javier.
My mission is to democratise dynamic profit tracking.
After 10 years working in the e-commerce marketing space I can guarantee you that having accurate profit metrics available will lead to better results.
Unfortunately, the industry continues to optimise with either revenue metrics or misleading average profit metrics.
Let’s change that today.
Are you in LinkedIn? Let’s connect: /javier-garijo/
The ecommerce industry deserves accurate profit data
90% of ecommerce stores use metrics such as ‘Average Profit Margin’ in their profit analysis.
With so many variable costs involved with each order, this approach to calculating profit is extremely dangerous and leads to poor quality profit data.
Example below: Two real orders in a GA4 exploration report.

The ecommerce industry deserves accurate profit data
90% of ecommerce stores use metrics such as ‘Average Profit Margin’ in their profit analysis.
With so many variable costs involved with each order, this approach to calculating profit is extremely dangerous and leads to poor quality profit data.
The two orders below are a perfect example:

Real-life example on why you need dynamic profit metrics
Metrics such as ‘average profit margin’ corrupt your profit data. Ditch them for good.
This system has been tested on over 30k real orders
Zero errors.
What about using profit tracking SaaS tools?*
Profit tracking SaaS tools have done a great contribution to the industry. However, there are some challenges when using these tools:
- Cost: Tracking 5000 orders per month with SaaS tools would cost you $3000 to $7000 per year. Tracking the same volume with this system costs $120 per year in server costs.
- Data granularity and export limitations: SaaS tools do not export order costs to your analytics tools. Granular cost data is just as important as accurate profit data.
- Dependability: We believe that businesses shouldn’t be dependent on 3rd parties to access their most important metric.
Are you currently using a SaaS tool and don’t want to change? No problem. You can overlap both systems. Keep getting profit data from the SaaS and use this solution to access and store cost data.
*Based on the tools we know and today’s date (April 2025). SaaS tools do offer complementary services but we understand that their main value proposition is profit tracking.
Workshop curriculum
Learn how to set up this system in a series of short instructional videos.
Module #1 Overview of this profit tracking system.
- Intro to profit tracking, profit bidding and the workshop.
- Overview of this profit tracking system.
- Real-life example on why you shouldn’t use averages.
Module #2 Profit tracking implementation.
- About data layer parameters and consent mode.
- Overview of the custom variable templates.
- Creating the costs tables.
- Uploading the costs tables to a free database.
- Tracking order weight without code.
- Setting up the product cost calculator.
- Setting up the shipping cost calculator.
- Setting up the handling and transaction cost calculators.
- Setting up the order profit calculator. Test order.
Module #3 Profit data integration.
- Send profit and cost data to GA4.
- Send profit and cost data to Shopify.
- Send profit data to Google Ads and Paid Social platforms.
- Create a contribution margin report in 5 minutes with GA4, Google Sheets and Looker Studio.
- Create your own profit tables with sGTM, GSheets or BigQuery.
Module #4 Additional profit tracking.
- Product profit tracking.
- Tracking profit and cost from offline orders.
- Refund cost tracker and profit adjustment.
“This system is easy to set up, involves virtually zero ongoing costs and delivers the most granular data available. For these reasons, my vision is for this to become the industry-standard profit tracking tool”.
Javier Garijo, founder of TheTechyMarketers.com
- Join below
Start today with one single payment
-
Instant access
-
Fully actionable
-
Includes all necessary downloadable templates
-
Lifetime access
-
Fluent business english
Start today, pay in 2 months
-
Instant access
-
Fully actionable
-
Includes all necessary downloadable templates
-
Lifetime access
-
Support
Frequently Asked Questions
I have tested all iterations on over 30k orders from 2 ecommerce stores. We had zero errors. Check one of the videos above where I do a walkthrough in BigQuery.
Both. You will download the custom templates and learn the set up steps with a few short videos.
It couldn’t be easier to set up. You just need to fill our templates with event data and constant variables.
As difficult as uploading a .CSV file via a nice interface. Literally takes 20 seconds.
Google Firestore is a pain to set up but Supabase is perfect.
You are allowed to use them on as many clients as you have. The restrictions are related to sharing or selling the templates to 3rd parties.
The cost per processed order is less than $0.002. These are server costs coming from your server provider (Stape, GCP, etc)
Any SaaS tool -not just profit tracking ones- have salaries to pay and infrastructures to maintain. With the profit tracking system we’ve developed you only pay for the actual, real costs of tracking profit and costs.
That’s a reasonable concern. In fact, you can overlap both systems, keep getting profit values from the SaaS and get dynamic order costs from this system.
Not at all, you will see that updating cost data is an easy task.
Yes. This system is based on a server container, which means that nobody can access these metrics from the data layer.
This system will work best under Advanced Consent Mode.
Under Basic Consent Mode there will be the standard, consent-dependant GTM limitations.
We are delivering downloadable software, so to prevent abuse we currently don’t offer money back unless there’s an error on our side. Note that these templates have been throughly tested on over 30k orders.
Start today with one single payment
-
Instant access
-
Fully actionable
-
Includes all necessary downloadable templates
-
Lifetime access
-
Fluent business english
Start today, pay in 2 months
-
Instant access
-
Fully actionable
-
Includes all necessary downloadable templates
-
Lifetime access
-
Support