-
Notifications
You must be signed in to change notification settings - Fork 0
tracking
Conversion tracking might be vital in estimating and measuring the success of your ad campaigns. Here, we will explain how to set conversion tracking up within the Slice platform.
Slice supports server-to-server (s2s) conversion tracking as well as client-side (cookie-based) tracking. In most cases, these options are enough to track installs, registrations, and other types of actions.
Postback is a conversion tracker. Technically it's a URL (or a piece of JS code) that receives a conversion and saves it to the ad server's database.
You will get a unique URL (or a JS snippet) after reaching out to us.
We can create as many postbacks as needed for your business. Each postback can be configured with a different set of options. For example, you can allow or disallow passing custom amounts.
If you would like to set up server-to-server conversion tracking, you will need to follow these steps:
- First of all, you will need an assigned postback URL.
- Then, you need to append an arbitrary parameter to your landing page URL in your ads. For example: https://www.mywebsite.com/offer/?click=**{click}**
- The placeholder {click} will be automatically replaced with an unique token and a visirtor will be redirected to the URL like this https://www.mywebsite.com/offer/?click=**a0b2f5acf01**.
After that, you need to store that a0b2f5acf01 token and pass it back to our server by calling a postback URL in case of conversion. For example, https://track.aso1.net/postback?pid=ABC123&clickid=**a0b2f5acf01**.
You can do it with PHP:
<?php file_get_contents('https://track.aso1.net/postback?pid=ABC123&clickid=**a0b2f5acf01**');
Or HTML on a thank you page:
<script>(new Image).src="https://track.aso1.net/postback?pid=ABC123&clickid=**a0b2f5acf01**";</script>
This way the conversion will be recorded.
Moreover, you can send a custom amount in your URL (if you've enabled it in a postback). To do that, you need to append the "&amount=_AMOUNT_"
parameter to the postback URL above.
In order to implement client-side (cookie-based) conversion tracking, you need to follow these steps:
-
First of all, you need to create a postback as described above and obtain two JS snippets. You need to choose "Client-based" at the top of the postback view page.
-
Then, you need to append _aso_clk={click} parameter to your Landing URL. Please note, the parameter name should be exactly _aso_clk otherwise, the tracking won't work correctly.
-
After that, place the first snippet on your landing page and on a thank you page.
-
Finally, place the second snippet on your "Thank you" page.
Besides, you can send a conversion dynamically by calling "_ASO.Postback.send()" function in your code. In this case, you don't need to insert the second snippet to the page but the first one is still required.
Just like with s2s tracking, you can also send a custom amount (if it's enabled in a postback). In order to do that, you need to set the amount you need as the first parameter of _ASO.Postback.send function.
<script>_ASO.Postback.send(_AMOUNT_);</script>
Please note, that cookies can be blocked by some browsers/anti-ad plugins. In this case, conversions may not reach our server.
You can have a look at an example here.
When you configure conversions, you may need test tokens. For example, to test your script or a 3rd-party tracker setup.
We created a useful tool for you. It's located on a postback view page. Press the "Tester" button above the postback URL.