Meta
  • 03 Dec 2024
  • 4 Minutes to read
  • Dark
    Light

Meta

  • Dark
    Light

Article summary

Tracking Android campaigns using referrer

Meta passes campaign metadata through Android referrer on the first app open, which can be used for attribution. More details are available in Meta's official documentation. In order to use referrer tracking, please follow the steps below.

  1. Ensure you are using the latest Tenjin SDK and implement the Android referrer. If Android referrer is implemented properly, you can see the green received mark in the app page. (NOTE - Please ensure to also update the manifest file in the SDK as mentioned here)

    image.png

  2. Next, go to the Meta developer page, navigate to the App Settings -> Basic, and scroll down to the Android section. Copy the Install Referrer Decryption Key.

    image.png

  3. Go to the Apps page on the Tenjin dashboard and click edit. Paste the decryption key you copied in Step 2 under the Facebook referrer decryption key field.

    image.png

  4. Go to CONFIGURE -> Apps tab and select your app.

  5. Click Callbacks tab.

  6. Select Meta in the Channels and Partners drop-down. Enter Meta App ID for your app, and click Save.
    image.png

  7. Activate Meta Install callback.
    image.png

Need for Meta Install Referrer

The Meta install referrer includes data for: view through installs (VT), click through installs (CT) and multiple session click though installs. You can read more about it here.


Tenjin and Meta SKAdnetwork Campaign setup

For iOS 14+ SKAdnetwork campaign setup with Tenjin, please see this page.

Meta deferred deeplinking is not available for Meta iOS 14+ campaigns.

For Android, please use the tracking using Android referrer. The Deeplink setup is NOT needed for Android tracking.

  1. Make sure you have already added Protocol in the App setting.

  2. Go to CONFIGURE -> Apps tab and select your app.

  3. Click Callbacks tab.

  4. Select Meta in the Channels and Partners drop-down. Enter Meta App ID for your app, and click Save.
    image.png

  5. Activate Meta Install callback.
    image.png

  6. After you create a campaign in Tenjin, you will automatically see the deep link URL.

    image.png

  7. Go to your Meta Ads Manager and create your ad set. Use the Tenjin campaign name as your Meta ad set name. For example, it would say "iOS-US-male-Wordsearch @hB1zqEeYDeKgDPF6qvkq7O". You can give any name for the Meta campaign.

    image.png

  8. Create an Ad for the Meta ad set, and in the "Deferred deep link" field insert the Tenjin Deeplink you generated in step 6. You can use the same deep link url for multiple ads under the same ad set.

    image.png

  9. To redirect users to a specific place in your app, you can append any parameter and value to the deeplink generated in step 6 above. For example:

    Original Meta deferred deeplink:

    fb1423740114570310://?campaign_id=hB1zqEeYDeKgDPF6qvkq7O
    

    Meta deferred deeplink with a custom parameter/key:

    fb1423740114570310://?campaign_id=hB1zqEeYDeKgDPF6qvkq7O&creative_name=TEST
    

When there's an app install from your campaign, the entire deeplink url with the custom parameter will. be passed to the Tenjin SDK. The customized deeplink data can be fetched directly from the Tenjin SDK to handle any type of redirects within your app by following these instructions: iOS, Android, and Unity.



How to set up App Event Optimization (AEO) campaigns in Meta

Show more

Run campaigns on standard events

  1. Go to the Tenjin Dashboard, CONFIGURE -> APPS, and select your app to set up the standard event callback to Meta.

  2. Click Callbacks tab.

  3. Select Meta in the Channels and Partners drop-down. Enter Meta App ID for your app, and click Save.
    image.png

  4. Click ADD EVENTS and Select Meta standard custom event callback.

  5. Select the event you want to pass to Meta and map it to one of the Meta standard events. Please make sure you are already sending this event to Tenjin. Click Save.
    image.png

  6. When Tenjin receives the custom event, this event will be sent to Meta. You can then see the event in the event manager page as shown below.

    image.png

  7. If you are setting up a campaign for iOS 14.5+, please set up SKAdnetwork configuration, by referring to our instructions here.

  8. Now you will be able to choose the standard events as shown below when you setup a bidding strategy for your campaign.

    image.png

Run campaigns on your own custom events

  1. Go to the Tenjin Dashboard, CONFIGURE -> APPS, select your app to set up the manual custom event callback to Meta.

  2. Click Callbacks tab.

  3. Select Meta in the Channels and Partners drop-down. Enter Meta App ID for your app, and click Save.
    image.png

  4. Click ADD EVENTS and Select Meta manual custom event callback.

  5. Select the event you want to pass to Meta and name the event you want to show in Meta Ads Manager. Please make sure you are already sending this event to Tenjin. Click Save.
    image.png

  6. When Tenjin receives the custom event, this event will be sent to Meta. You can then see the event in the event manager page as below (you may need to filter by the event type on the right side).

    image.png

  7. Now, when you set up a bidding strategy for your campaign, you will be able to choose the custom events as shown below. (Note: this is not applicable to iOS 14.5+ campaign. For iOS 14.5+ campaign, please refer to the above section)

    image.png

NOTE:

At least one standard event (non-install one) is required before you can run AEO campaigns based on custom events.


NOTE

In accordance with Meta's privacy requirement, starting May 9, 2024, campaign reporting will not be provided when the count of unique users is below 100, or the count of ad impressions is below 1,000



Was this article helpful?