Meta Ads Attribution (Conversions API)

Goran Culibrk

Goran Culibrk

Last updated on Nov 28, 2026

Ranksy sends install and revenue conversions from its server to your Meta pixel. It uses the Meta Conversions API. Meta can then optimize your ads for merchants who install your app and pay, not only for clicks.

A merchant often clicks your ad in the Facebook or Instagram app. The merchant then installs your app at a different time, or in a different browser. Ranksy matches each conversion to the merchant with the store identity and the email of the merchant. Meta does not need an ad-click cookie to match the conversion.

What You Need

  • Required: your app connected to the Shopify Partner API. Ranksy gets installs and revenue from it. See Connect Partner API.
  • Required: the Ranksy integration (/identify). Your app calls the Ranksy identify API for each store that installs your app. Ranksy gets the Shopify plan, the store creation date, and the owner details of the store from this call. See the identify API reference.
  • A Meta pixel (dataset) ID. Use the same pixel as your Shopify App Store listing.
  • An access token from Meta Events Manager. In Events Manager, select your dataset. Open Settings. In the Conversions API section, click Generate access token.

โš ๏ธ Warning: If Ranksy does not have the Shopify plan of a store, Ranksy sends no conversions for that store. Make sure that your app calls the identify API.

๐Ÿ’ก Tip: To match installs to ad clicks, also send the IP address and the user agent of the merchant in the identify call.

Connect Your Pixel

  1. Go to My Apps.
  2. Select your app.
  3. Click Settings.
  4. Open the Meta Conversions API tab.
  5. In Pixel / Dataset ID, enter your pixel ID.
  6. In Access token, paste your access token.
  7. In Revenue value, select Net (after Shopify fee) or Gross.
  8. Click Save Configuration.
  9. Click Test connection.

Net (after Shopify fee) is the default. It sends the charge after the Shopify fee. Gross sends the full charge.

Test connection sends one test event to Meta. If the test fails, the tab shows the error message from Meta. You cannot test unsaved changes. Save your changes first.

After you connect, the tab shows a status badge and Last sync. Last sync is the last time that Ranksy ran a send for your app. It does not show that Meta received an event.

Ranksy encrypts the access token. Ranksy does not show the token again. To change other settings and keep the current token, leave Access token empty. Then click Update Configuration.

Send as CRM Events

Turn on Send as CRM events (Qualified Leads) only if the CRM (Qualified Leads) integration is on for your dataset in Meta Events Manager. The switch is off by default.

When the switch is on:

  • Ranksy adds event_source=crm and lead_event_source=Ranksy to each event, except RanksyInvalidClick.
  • If Install does not send Lead, Ranksy also sends Lead for each install. The paid-plan filter and the store-age filter do not apply to this Lead.
  • If Qualified install already sends Lead, Ranksy does not send this extra Lead.

Check That Meta Receives Events

A passed connection test shows that the pixel ID and the token are correct. It does not show that real conversions arrive.

  1. Open Meta Events Manager.
  2. Select your dataset.
  3. Open the Overview tab.
  4. Find your events. The default event names are Lead, CompleteRegistration, and Purchase.
  5. Make sure that the events show as server events.
  6. Check the Event Match Quality of each event.

Ranksy sends the events at these times:

Event When Ranksy sends it
Install Soon after your app sends the store to Ranksy through the API
Qualified install 4 days after the install
Revenue, Trial started, Subscribed, Disqualified, Invalid click One time each hour

Use Your Meta Landing Page URL in Your Ads

Ranksy makes a landing page for your Meta ads. Use its URL as the destination of your Meta ads. Do not use the Shopify App Store link.

  1. On the Meta Conversions API tab, find Meta ad destination URL.
  2. Click Copy.
  3. In Meta Ads Manager, set the website URL of your ad to this URL.

The tab shows Meta ad destination URL when the status is Connected. It is the same URL as the Meta ads URL on the Landing Page tab.

The URL has this form:

https://ranksyapp.com/lp/your-app-a1b2c3d4

If you use your own domain and the domain is Live, the URL uses your domain:

https://lp.yourdomain.com/your-app-a1b2c3d4

Keep your utm_ parameters on the URL.

Note: If your ads use an old apps.ranksyapp.com link, the link continues to work. It sends visitors to the new landing page with a permanent redirect (301). This works while Meta Conversions API stays connected with the same pixel.

What the Landing Page Does

The landing page is a page about your app. It is not a redirect. The visitor clicks the install button, View on Shopify App Store, to open your listing.

When a visitor opens the page from a Meta ad:

  • Ranksy records the ad click on its server. Ranksy records the Meta click ID (fbclid), the _fbc and _fbp values, the IP address, the user agent, and your utm_ parameters.
  • The page sets the _fbc and _fbp cookies. Your pixel and Ranksy then use the same values.
  • The page loads your Meta pixel and sends one PageView event. The pixel sends no other events. Ranksy sends the conversions from its server.
  • If the URL has an rcamp parameter, Ranksy also records the click with that value. When Ranksy matches the click to an install, the identify API returns the value in the rcamp field.

Ranksy records the ad click only when the URL has fbclid. Meta adds this click ID to the URL when a person clicks your ad.

When the visitor clicks the install button:

  • Your Shopify App Store listing opens in the same browser tab.
  • The listing URL keeps your URL parameters.
  • If the URL has a Meta click ID and no utm_source, Ranksy adds utm_source=facebook&utm_medium=paid_social.

See How Many Clicks Became Installs

  1. In the Traffic hub, open the Ads tab.
  2. Find Ad Clicks and Click Match Rate.
  3. Find the Ad Clicks vs Matched Installs chart.

Ad Clicks shows the ad clicks that Ranksy recorded on your landing page. A matched install is an install that Ranksy connected to one of these clicks. The Sources table shows the same data in the Ad Clicks ยท Match column.

How Ranksy Matches an Install to a Click

Ranksy compares each click with the device data that your app sends in the identify call:

  • Ranksy compares the IP address and the user agent of the click with the IP address and the user agent from the identify call.
  • The click must occur in the 20 minutes before the install.
  • The click must have fbclid.
  • Ranksy does not use clicks that it marked as a crawler or as invalid traffic.

When Ranksy matches the install to a click, Ranksy adds the click data (fbc and fbp) to the events for that install. The Install event also gets the IP address and the user agent of the click.

When Ranksy cannot match the install to a click, Ranksy sends the events without click data. Meta then matches them with the store identity and the email.

Choose the Events That You Send

  1. Under Events sent to Meta, turn each signal on or off.
  2. For each signal, select the Meta event.
  3. Click Save events.

Value and currency come from your Partner API revenue. You do not enter them.

Signal Meta events (default first) When Ranksy sends it
Install Lead, CompleteRegistration When your app sends a new install to Ranksy, and the store passes the filters
Revenue Purchase, Subscribe, StartTrial For each charge more than zero from the last 7 days
Trial started StartTrial When a merchant starts a trial of your app
Subscribed Subscribe When a merchant starts a subscription, or a trial changes to a paid subscription
Qualified install CompleteRegistration, Lead When your app is still installed 4 days after the install, and the store passes the filters
Disqualified MerchantDisqualified See MerchantDisqualified below
Invalid click RanksyInvalidClick See RanksyInvalidClick below

All signals are on by default, except Invalid click. Trial started shows only for apps with trials. Subscribed shows only for apps with subscriptions.

If your app has no paid revenue yet, the Revenue row shows "No paid revenue yet โ€” sends nothing until this app has paying merchants."

Filters for Install and Qualified Install

Install and Qualified install each have two filters:

  • Include only paid Shopify plans: the store must have a paid Shopify plan. Paid plans are Basic, Shopify, Advanced, and Plus.
  • Only fire for stores older than N days: the store must be older than N days. N is 1 to 30. If you leave the field empty, Ranksy uses 4.
Signal Default filters
Install Both filters are on. N is 4.
Qualified install Only Include only paid Shopify plans is on.

Ranksy checks the store age at the time of the install. The store must be more than N days old when it installs your app. A store that is exactly N days old does not pass. If Ranksy does not have the store creation date, the store does not pass the store-age filter.

The store-age filter stops events from bot-farmed stores. A larger number stops more new stores.

Stores That Never Send Conversions

Ranksy never sends Install, Qualified install, Revenue, Trial started, or Subscribed events for these stores. The filters do not change this.

  • Development stores and test stores. This includes a store with a paid plan that also has a development flag.
  • Stores on the Shopify Trial plan. The age of the store does not change this.
  • Stores with no plan data. Ranksy gets the plan from the identify API.

Ranksy also sends no conversions to Meta for an install in these cases:

  • Ranksy matched the install to a Reddit ad click.
  • The install came from the IP address of a click that Ranksy marked as a crawler or as invalid traffic, and no other click matches the install.

Qualified Install

Ranksy sends Qualified install 4 days after the install. Ranksy checks that your app is still installed at that time. If your app is not installed, Ranksy does not send the event.

This event shows that the store kept your app for 4 days. It does not show long-term retention.

Change an Event Name

When you select a different Meta event for a signal and click Save events, Ranksy shows the Change event name? dialog. Confirm to continue.

After the change, Ranksy can send the conversions from the last 7 days to Meta one more time, with the new name. Meta removes duplicates only in the same event name. Events that Meta already received do not change.

Exclusion Events

Ranksy can send two custom events: MerchantDisqualified and RanksyInvalidClick. Use them to make exclusion audiences in Meta. Ranksy only sends the events. You make the audiences and the exclusions in Meta.

MerchantDisqualified

Ranksy sends MerchantDisqualified when it got the store details from the identify API in the last 7 days, and one of these conditions is true:

  • The store is a development store. The store has the Shopify development flag, or a Shopify plan that is not for production.
  • The store is on the Shopify Trial plan, and the store is 7 days old or less. A trial store with no creation date also gets the event.

Ranksy does not send the event in these cases:

  • The store has a paid Shopify plan. A paid plan stops the event, also when the store has a development flag.
  • The merchant has a trial of your app, but not the Shopify Trial plan. The Trial started signal covers trials of your app.
  • The store has only the test flag that you set manually in Ranksy.
  • Ranksy does not know the plan of the store.

Ranksy sends one event for each store and reason.

โš ๏ธ Warning: A store on the Shopify Trial plan that is more than 7 days old gets no MerchantDisqualified event. It also gets no Install or Qualified install event.

RanksyInvalidClick

The Invalid click signal is off by default. To use it, turn it on under Events sent to Meta. Then click Save events.

Ranksy sends RanksyInvalidClick only for a click that Ranksy checked when the click arrived. The check must give one of these results:

  • Invalid network: the IP address has abuse reports and is from a hosting provider or a data center. It also uses Tor or a proxy.
  • Invalid automation: the user agent is an automation tool, for example a headless browser or curl. The IP address is also from a hosting provider, a proxy, or Tor, or it has abuse reports.

Ranksy does not send the event for these clicks:

  • Known crawlers.
  • Clicks that have only a VPN, a proxy, a location, a provider name, or a risk score as evidence.

The click must also meet all these conditions:

  • The click is less than 7 days old. Ranksy keeps a margin of one hour, so the click must be less than 6 days and 23 hours old.
  • The click has an fbc value, an IP address, and a user agent.
  • Ranksy checked the IP address within 24 hours of the click.
  • The click is for your current pixel.

A result of the check does not prove fraud. The event does not cancel billed clicks. It does not request refunds.

When Ranksy Checks a Click

  • When Ranksy records a new click, it queues a check of the IP address.
  • When Ranksy sends Lead for an install that it matched to a click, it also checks that click:
    • If the click already has a result, Ranksy keeps that result.
    • If Ranksy has data for the IP address that is less than 1 day old, Ranksy uses that data. It does not check the IP address again.
    • If not, Ranksy queues a new check.
    • If the result is invalid and Invalid click is on, Ranksy queues the RanksyInvalidClick event immediately.
  • If the check fails, Ranksy still sends the Lead.
  • When Ranksy checks old clicks at a later time, these results never send events.

Exclude Disqualified Merchants and Invalid Clicks in Meta

  1. In Meta Events Manager, make sure that Meta received the custom event.
  2. In Meta, make an audience from the custom event.
  3. In your ad set, add the audience as an exclusion.

Meta controls these steps. The Meta interface can change. Ranksy does not change your ad sets, audiences, IP lists, billing, or refunds. Meta decides which people are in an audience.

How Ranksy Matches Merchants

Ranksy sends all the match data that it has:

  • The store identity: the myshopify domain and the Shopify shop ID.
  • The emails of the merchant, from the identify API or the Ranksy /capi API.
  • The owner name, the phone number, and the location of the store, from the identify API or the Ranksy /capi API.
  • The click data from your Meta landing page, when Ranksy matched the install to a click.

Ranksy hashes the email, the name, the phone number, and the ZIP code with SHA-256 before it sends them.

Click data increases the Event Match Quality in Meta. To send click data, use your Meta landing page URL in your ads.

Troubleshooting

Revenue sends nothing. Your app has no paying merchants yet. Ranksy sends Revenue events when the first charge arrives. Ranksy sends only charges from the last 7 days.

No Install events. Make sure that your app calls the identify API for each new store. Make sure that the store is not a development store or a Shopify Trial store. Then check the filters of the Install signal.

Status shows Error. Meta rejected the access token. The tab shows the message from Meta. While the status is Error, your Meta landing page shows "not found". To correct the problem:

  1. In Meta Events Manager, generate a new access token.
  2. In Access token, paste the new token.
  3. Click Save Configuration.
  4. Click Test connection.

The Meta landing page shows "not found". The page shows only while the status of Meta Conversions API is Connected. Correct the status. Then open the page again.

Low Event Match Quality. Make sure that your live ads use your Meta landing page URL. A direct App Store link gives no click data. Also make sure that your app sends the email, the IP address, and the user agent of the merchant in the identify call.

No Ad Clicks on the Ads tab. Make sure that your ads use your Meta landing page URL. Ranksy records only clicks that have fbclid.

No event for a signal. Make sure that the switch of the signal is on. Then click Save events. Invalid click is off by default. Trial started and Subscribed show only for apps with trials or subscriptions.

Turn Off Meta Conversions API

โš ๏ธ Warning: When you disconnect, your Meta landing page and your old apps.ranksyapp.com links stop working. Before you disconnect, change the destination URL of your Meta ads.

  1. At the bottom of the Meta Conversions API tab, click Disconnect Meta Conversions API.
  2. In the dialog, click Yes, Disconnect.

Ranksy stops sending events to Meta. Ranksy removes your pixel ID and your access token. You can connect again later with your pixel ID and token.

Next steps