Google Tag Manager (GTM) for Cookies-based Tracking

Google Tag Manager (GTM) is a great tool for managing tags (pixels) from a centralised interface without editing a code. Many sites owners already have it installed, so it is quite easy to add Scaleo tracking pixel and start conversion tracking.

Scaleo Configuration

1
Create an Offer the regular way in Scaleo.
2
Select that Offer, go to Goals. Edit a Goal and scroll to Tracking Method section.
3
Select: Tracking Method > IMG Pixel. Copy that code.
For Example:
<img src="https://demo.scaletrk.com/track/img?goal_id=2" height="1" width="1" />
	

Google Tag Manager Configuration

1
Setup and Install Google Tag Manager to your web site.
2
The conversion pixel code should fire on the conversion page only (also called "Thank You Page"). So we need to create a Trigger. Go to Triggers, click on New button. Select Trigger Type as Page View - DOM Ready. And to fire pixel on Some DOM-Ready Events. You can select that by URL / Path mask.
For Example:

3
Go to Tags, click on New button. Select Tag Type as Custom HTML. And place Scaleo pixel copied above into HTML field.
Select Triggering the trigger you created before. And click Save
For Example:

4
Publish your GTM and the conversions should be tracked now.

Advanced GTM Configuration to pass Sale Amount

If you run E-Commerce campaign and Revenue Share offer (CPS - Cost per Sale), you are required to pass the Sale Amount within your Tracking Pixel.

We need that Sale Amount passed to GTM via Data Layer. Some softwares do that already and some don't. For this case you need a technical team involvement.

1
Review your Thank You page code and find HTML element where Sales Amount and Order ID (optional) stored. Then push them to GTM Data Layer.
For Example:
<script type='text/javascript'>
   var order_amount = document.getElementById("order_amount").value;
   var order_id = document.getElementById("order_id").value;

  dataLayer.push({ 
    'order_amount': order_amount,
    'order_id': order_id }); 
</script>
	
2
Go to Variables in GTM, click on New button. Select Variable Type as Data Layer Variable. And add Variables: Order Amount with name  order_amount and Order ID with name  order_id.
Example:

3
Go to Tags and use that Variables inside your Tag. Just type {{ and you will receive the list of available variables. Select Order Amount and Order ID
Example:
<img src="https://demo.scaletrk.com/track/img?goal_id=5&amount={{Order Amount}}&adv_order_id={{Order ID}}" height="1" width="1" />
	
4
Publish your GTM and the conversions should include Sale Amount and Order ID.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us