How to set up Google Analytics for the White Label

To track the number of clicks on the "Buy" button in your White Label or the number of referrals to specific offers you can use the special services: Google Analytics or similar.

1. Initiate jQuery. To do this, place the code in the Meta tab:

<script type="text/javascript" src=""></script>

2. Go to Google Analytics and create a new Website Tracking. Copy the tracking code and paste it into the White Label settings in the Header tab.


3. Add targets with identifiers to the counter BUY_BUTTON, DEEPLINK for flights result and HOTELS_BUY_BUTTON, HOTELS_BUY_LINK for hotels.

BUY_BUTTON, HOTELS_BUY_BUTTON — will consider clicking on the "Buy" button in flight and hotels result page.

DEEPLINK, HOTELS_BUY_LINK — will consider clicking on links leading to agency websites.


4. Open the White Label section. Create a new one or open an existing white label for editing. Go to the "Footer" tab and add the following code:

ga('send', 'event', 'AVIA_BUY_BUTTON');
ga('send', 'event', 'AVIA_BUY_BUTTON');
ga('send', 'event', 'AVIA_BUY_BUTTON');
ga('send', 'event', 'AVIA_BUY_LINK');
ga('send', 'event', 'HOTELS_BUY_BUTTON');
ga('send', 'event', 'HOTELS_BUY_LINK');

5. Save changes in the White Label.


Detailed documentation is available on Google.

Was this article helpful?

Have more questions? Submit a request