Articles on: ADVANCED TUTORIALS

How to use the Unpack method with a tracking tool

In the Unpack method of The White Rabbit (TWR), the Safe Page and Offer Page fields ask for the file path on your hosting, not the URL. That is why your tracking tool has to track through a script installed on the page, and the parameters from both tools go together in your ad.



Before you start


  • A domain registered and verified in TWR. If you haven't done that yet, see how to register your domain.
  • Access to the file manager of a hosting account that runs PHP.
  • A tracking tool with script-based tracking: RedTrack (used in the examples), Voluum, Binom, Keitaro, BeMob, ClickMagick, Utmify, ThriveTracker, AdsBridge, Peerclick and CPV Lab.
  • If your campaign doesn't use Unpack, the process is simpler: see how to integrate TWR with any tracking tool.


Step by step


1. Create the campaign and enter the name, domain and traffic source


In the Campaigns menu, click New campaign. Enter the campaign name, select a domain registered in TWR and choose the traffic source.



2. Set the countries and devices


Select the countries and devices according to your ad targeting.



Anything left out of this selection goes to the Safe Page. Always keep it identical to your ad targeting.


3. Select the Unpack method on both pages


Under Delivery method, choose Unpack on the Safe Page and on the Offer Page. The fields stop asking for the page URLs and start asking for the file path on your hosting.



With no URL field, there is nowhere to paste the redirect URL your tracking tool generates. The solution comes in step 9.


4. Put the page files in the same hosting folder


Upload the Safe Page and Offer Page files to your site's public folder. Both stay in the same folder, along with the campaign's PHP file. You can name the files however you like, and those names never show up for anyone who clicks your ad.



We recommend hosting on a different domain from the one you registered in TWR. The reasoning is in the Unpack method article.


5. Set the Safe Page and Offer Page paths


The ./ means "starting from the folder where the PHP file is installed". With everything in the same folder, just enter each page's file name:


Field

Path

Safe Page

./safe.html

Offer Page

./offer.html


Use your own file names.



The path has to match the file's real address on your hosting exactly. If it doesn't, the script can't find the page.


6. Enable the Unique Token (optional)


The Unique Token adds a password to the campaign URL parameters, an extra layer of protection. It isn't mandatory, but it is recommended.



Once the Unique Token is enabled, use exactly the parameters generated for this campaign, with no changes. If they are modified, the campaign won't work.


7. Save the campaign, download the PHP file and copy the parameters


Click Save campaign. TWR then shows the campaign parameters and the PHP file to download. Download the file and copy the parameters to a notepad.



8. Upload the file to your hosting and rename it to index.php


Upload the PHP file to the same folder as the page files and rename it to index.php.



9. Switch your tracking tool to script-based tracking


Your tracking tool generates a redirect URL, which would be your ad URL if you weren't using TWR. Since Unpack has no URL field, switch to the mode that tracks through a script. In RedTrack, under Tracking links and parameters, switch the REDIRECT tab to NO-REDIRECT: instead of the URL, you get a script and its matching parameters.



Each tool has its own name for this mode. If you can't find the option, ask their support how to track without a redirect URL.


10. Install the tracking script in the Offer Page code


Copy the script and open the Offer Page file in your hosting's file editor. Paste the script right before the closing </body> and save.



If your funnel has a landing or pre-landing page, check with your tracking tool's support.


11. Concatenate the TWR parameters with your tracking tool's parameters


Put the parameters generated by TWR and the ones your tracking tool shows next to the script on a single line, with one & between them.



Use only the &, with no blank spaces, no ? and no other character. The order doesn't matter.


12. Add the URL and the parameters to your ad


Your ad URL is the address where you installed index.php, always with https://. The parameters you concatenated go with it:


Scenario

How to enter it

Source with a separate field for parameters

URL in the destination field and the parameters in the dedicated field

Source without a separate field for parameters

URL?parameters: add ? after the URL and paste the parameters right after


Whenever the traffic source has a dedicated field for parameters, use it.


13. Test the campaign with Test Offer


On the campaign screen, click Test Offer. TWR generates a parameter you add to the URL to check the Offer Page without it counting as real traffic. Turn test mode off when you're done.



Opening the URL without the campaign parameters shows the Safe Page. That is the expected behavior.


14. Follow your results


On the Charts tab you can follow the total number of requests and the split between Offer Page, Safe Page and bots. Visits that reach the Offer Page load the script installed in step 10 and also show up in your tracking tool.



If you later edit the page paths, TWR generates a new PHP file to replace the old one on your hosting. The parameters stay the same.

Updated on: 07/08/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!