Advertiser Integration Example: Checkout page
Thank you for your purchase!
Order amount: 100.00 EUR
Order number: 782149
Source Code
<!--
This is an example how to integrate Postback Tracking via Google Tag Manager.
The guide can be found here: https://help.scaleo.io/article/478-google-tag-manager-gtm-for-postback-tracking
When following the guide, please:
- replace the 'click_id' query parameter with 'tcv_cid'
- replace the 'click_id' cookie name with 'tcv_cid'
-->
<html>
<head>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K88ZJNC');</script>
<!-- End Google Tag Manager -->
</head>
<body>
<h1>Advertiser Integration Example: Checkout page</h1>
<div>
<div>Thank you for your purchase!</div>
<div>Order amount: <b id="order_amount">100.00</b> EUR</div>
<div>Order number: <b id="order_id"><?php echo rand(100000, 900000);?></b></div>
</div>
<div style="background-color:#BBB;padding:10px;margin:10px;">
<h3>Source Code</h3>
<?php
show_source("thankyou.php");
?>
</div>
<script type='text/javascript'>
var order_amount = document.getElementById("order_amount").innerText;
var order_id = document.getElementById("order_id").innerText;
dataLayer.push({
'order_amount': order_amount,
'order_id': order_id });
</script>
</body>
</html>