Set up measurement for Epic games
This guide walks you through the process of setting up an Epic Games app, establishing a secure Server-to-Server (S2S) API connection, and effectively managing links for successful attribution measurement. Your users can download your game using the Epic Games store, or your custom store, on Windows and Mac.
Here is what you need to do to set up measurement for Epic Games:
- Set up a new app in AppView.
- Set up the Adjust's S2S API to start recording sessions.
- Set up links in Campaign Lab.
Set up your Epic Games app
To get started with adding and setting up a PC app, follow these steps:
- Under AppView, select All apps.
- Select New app.
- Under Enter your app details, enter the app name, choose your reporting currency, and check if your game needs to comply with:
- Select Add app.
- Select Add platform to connect a platform to your game.
- Select PC > Epic games. Works for Windows and Mac Epic Games stores.
- Enter the App ID or select I don't have an App ID yet to enter it later.
- (Optional) Turn on Redirect all clicks to a custom URL and enter a Custom URL, if you want your users to go to a custom website instead of Epic's app store. We recommend this if your app does not have an App ID.
- Select Save.
- Under App information, you can customize how all links for your game will appear when shared on social media apps.
- On the Events tab, add an in-app event name to measure user activity in your game.
- On the Attribution settings tab, set attribution settings (for device matching, probabilistic modeling, and temporary attribution) and reattribution settings.
- Make sure that probabilistic modeling is enabled for both clicks and impressions. It is highly recommended to set the attribution window for probabilistic modeling to 24 hours, but you can choose to set it for up to 90 days. The 90-day attribution window is available only for PC and Console platforms.
- On the Data management tab, set up server callbacks or cloud storage uploads to receive raw, user-level data, or use the Testing console to see test device data.
- On the Protection tab, set up S2S security as you'll need the token in the S2S API setup.
Set up the Adjust S2S API
Use the Adjust S2S API to connect your app to Adjust and start measuring your users' session and events without changing your app code.
Continue with the setup process using the following session
endpoint.
Before you begin
The Adjust server enforces strict consistency checks which prevent abuse or overloading of the system. S2S attribution is an exclusive integration that cannot be used in conjunction with the Adjust SDK.
- Make sure you have read our S2S attribution checklist to fully understand the limitations of using an S2S setup instead of an SDK Integration.
- You must make your requests to our servers in the same sequential order that occured on the device.
Authentication
Set up S2S Security to guarantee the security of your S2S sessions and protect against spoofed requests. This requires each incoming request to carry an authentication token generated in your Adjust dashboard. Requests that do not carry the token or that carry an incorrect token are rejected by our server.
Endpoint
The session
endpoint allows you to record sessions when users launch your game. What triggers a session is when a user resumes the game from the background or starts it, for example opening another app while keeping the game running or starting the game after a previous close. The Adjust server accepts new sessions every 30 minutes to avoid unnecessary use of resources.
https://s2s.adjust.com/session
POST header
Authorization: When you call Adjust APIs, send the value of your Adjust authentication token with the authentication type set as Bearer.
Example: Bearer authentication_token
.
POST Payload
Parameters marked with * are required.
Parameter | Data type | In | Description |
---|---|---|---|
s2s * | String | Query | Server-to-server parameter: allows Adjust servers to recognize server-side activity. Must always be sent as 1. |
app_token * | String | Query | Unique authentication token for your app |
os_name * | String | Query | Use one of the available parameters according to your app's OS:
|
ip_address * | String | Query | Device IP address |
created_at * | Timestamp | Query | Timestamp of local device, creation of the package including timezone. |
external_device_id * | String | Query | Unique user_id, example: user’s account_id or encrypted email address |
Request example
If you want to learn how to record events using the S2S API, visit Server-to-server (S2S) events.
Set up links
After you have set up and tested the S2S API integration between your app’s server and Adjust, you need to connect Adjust to the ad network you are running your campaign with.
Using links means that you can record attribution when users engage with your ad on other devices, for example watching an ad on their mobile phone or on a CTV, and later installing the game on PC. Here are two example of networks for web campaigns:
In Campaign Lab, follow the setup steps below.
- Under Campaign Lab, select Partners.
- Select New partner.
- In the Partner selection screen, choose the ad network that you want to set up.
- In the App selection screen, choose the app for which you want to create the link.
- (Optional) In the Data sharing screen, configure the integration between your network and Adjust, and choose data sharing options.
- In the Link structure screen, review the default link structure parameters provided by the network and update the values, if needed.
- (Optional) In the User destinations screen, configure a deep link, or add a redirect and fallback to your link.
- If you want to redirect users to a particular game store, make sure to include the URL as an additional redirect parameter.
- (Optional) In the Attribution settings screen, set custom attribution settings for new and existing users. These attribution settings are available for clicks and impressions. If you skip this step, attribution settings that you chose during app setup will apply.
- Make sure that probabilistic modeling is enabled for both clicks and impressions. It is highly recommended to set the attribution window for probabilistic modeling to 24 hours, but you can choose to set it for up to 90 days. The 90-day attribution window is available only for PC and Console platforms.
- In the Setup review screen, review your choices, and make any changes as necessary.
- Select Create link to generate the click URL, impression URL, QR code, and link token, and enable data sharing, if set up.