Meta ad landing pages

Ranksy hosts a landing page for each app that has the Meta Conversions API connected. Use its URL as the destination of your Meta ads instead of the raw App Store link. The page records the ad click on Ranksy's server, and its install button opens your Shopify App Store listing. When your app identifies the installing merchant, Ranksy matches the install to the click and adds the click data to the conversions it sends to Meta.


Destination URL

Each app gets one Meta landing page. In Ranksy, open the app's Settings, then the Meta Conversions API tab, and copy the Meta ad destination URL. Paste it into the Website URL of your ad in Meta Ads Manager.

The URL has this form:

https://ranksyapp.com/lp/{listing-handle}-{id}

For example:

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

If the app uses its own domain and the domain status is Live, the URL is on that domain, with no /lp prefix:

https://lp.yourdomain.com/your-app-a1b2c3d4
  • {listing-handle} is the handle of your Shopify App Store listing. {id} is an 8-character page id that Ranksy assigns. Copy the URL from Ranksy. Do not build it by hand.
  • The page serves only while the Meta Conversions API status of the app is Connected and the listing is live on the App Store. In all other cases the URL shows a "not found" page.
  • If your listing handle changes, the old URL sends a permanent redirect (301) to the URL with the new handle. The id does not change.
  • An app with Reddit conversions connected also has a separate Reddit landing page URL of the same form. Use each URL only for the ads of its own network.

Keep your utm_* parameters on the URL. Meta adds its click ID, fbclid, when a person clicks the ad. Do not put the URL behind a link shortener or another redirect that removes the query string: without fbclid, Ranksy does not record the ad click.

https://ranksyapp.com/lp/your-app-a1b2c3d4?utm_campaign=summer-launch&rcamp=summer-video-a

Old apps.ranksyapp.com links

Ads that still use an old link of the form https://apps.ranksyapp.com/{slug}/{code} keep working. The old link sends a permanent redirect (301) to the new landing page and keeps the full query string, including fbclid, utm_*, and rcamp. Ranksy records the click once, on the new page. This works while the Meta Conversions API stays connected with the same pixel. When you disconnect, or change the pixel, the old links stop working, so update your ads to the new URL.


What the page does

The landing page is a page about your app: name, rating, description, screenshots, pricing, reviews, and developer details from your listing. It is not a redirect. The visitor continues to the App Store when they click the install button, View on Shopify App Store.

When the page loads

The URL hasWhat Ranksy does
AnythingThe page loads your Meta pixel, the pixel of the app that owns the page, and sends one PageView event. The pixel sends no other events. Ranksy sends the conversions from its server through the Conversions API.
fbclidRanksy records the ad click on its server: the fbclid, the _fbc and _fbp values that it mints for the click, the IP address, the user agent, and your utm_* parameters. The page sets the _fbc and _fbp cookies to the same values, so your pixel and the Conversions API use the same identifiers.
A valid rcampRanksy records a campaign click with the rcamp value, the IP address, and the user agent, with or without fbclid. See Campaign clicks and rcamp.

rcamp is valid when the URL has exactly one rcamp parameter, the value is not empty or only whitespace, and the value has 255 characters or fewer. Ranksy stores the value exactly as sent, without trimming. An invalid value is ignored, and the page loads as usual.

When the visitor clicks the install button

  • Your Shopify App Store listing, https://apps.shopify.com/{listing-handle}, opens in the same browser tab.
  • The visitor stays in the browser they opened the ad in. Ranksy does not move visitors out of the Facebook or Instagram in-app browser, on any platform.
  • The listing URL keeps the query string of the landing page.
  • If the URL has fbclid and no utm_source, the button adds utm_source=facebook&utm_medium=paid_social, so the App Store credits the visit to Facebook. Ranksy never changes a utm_source that you set.
Landing page:  https://ranksyapp.com/lp/your-app-a1b2c3d4?utm_campaign=summer-launch&fbclid=IwAR2x...
Install link:  https://apps.shopify.com/your-app?utm_campaign=summer-launch&fbclid=IwAR2x...&utm_source=facebook&utm_medium=paid_social

Matching installs to clicks

The landing page sees the visitor's browser. Your server sees the merchant when they install your app. Ranksy connects the two only through the device data that your app sends to /identify: the ip and user_agent of the installing merchant's contact.

What your app must send

Call /identify for each new install. On the contact that represents the installing merchant (usually the owner), send ip and user_agent as your server saw them on the merchant's own request at install, for example the OAuth callback that installed your app.

  • The merchant's device, not your server's. Ranksy never uses the IP address or user agent of the /identify request itself. That request comes from your server.
  • A real browser user agent. A user agent from an HTTP client library or a server-side tool never matches a click.
  • Only /identify counts. The context that you send to /capi does not take part in click matching.
  • Send the first device right. Ranksy keeps the first device that it stores for a contact. A later call can only fill in a missing value or replace a stored user agent that is not a browser's. See Device signals for ad attribution.

Identify with device data

curl -X POST https://ranksyapp.com/api/v1/apps/:app/identify \
  -H "Authorization: Bearer rk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "myshopify_domain": "store.myshopify.com",
    "shopify_access_token": "shpat_...",
    "contacts": [{
      "name": "Sarah Chen",
      "email": "sarah@store.com",
      "label": "owner",
      "ip": "203.0.113.9",
      "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1"
    }]
  }'

200 — Install matched to a campaign click

{
  "identified": true,
  "shop_id": 68134502401,
  "plan": "Advanced Shopify",
  "is_shopify_plus": false,
  "admin_country": "US",
  "timezone": "America/Los_Angeles",
  "currency": "USD",
  "rcamp": "summer-video-a",
  "contacts_count": 1,
  "tags_count": 0,
  "custom_fields_count": 0
}

Meta ad clicks

Ranksy matches an install to a Meta ad click when all of these are true:

  • The click has fbclid.
  • The click happened in the 20 minutes before the install.
  • The device of the click matches a contact from your identify call. Ranksy compares the IP address and the user agent of the click with the ip and user_agent of each contact, and picks the closest match. The same IP address and the same user agent is the strongest match.
  • The click is for the current pixel of the app, and no other install has claimed it.
  • Ranksy did not mark the click as a crawler or as invalid traffic.

When Ranksy matches the install to a click, it adds the click's fbc and fbp to the Meta events for that install. The Install event also gets the IP address and the user agent of the click. When there is no match, Ranksy sends the events without click data, and Meta matches them with the store identity and the email.

The API does not return the Meta click match. In Ranksy, the Ads tab of the Traffic hub shows Ad Clicks and Click Match Rate for your landing page.

Campaign clicks and rcamp

Add rcamp to your ad URL to tag a campaign, ad set, or creative with your own value, for example rcamp=summer-video-a. Ranksy matches campaign clicks to installs separately from Meta ad clicks. An install matches a campaign click when:

  • The IP address of the click is the same as the ip of one of the install's contacts from your identify call.
  • The click happened in the 7 days before Ranksy stored that contact's device from your identify call.
  • The click is for the same app, and no other install has claimed it.

If more than one click qualifies, Ranksy prefers a click whose user agent also matches, then the most recent click.

/identify returns the matched value in the rcamp field. Ranksy runs the match during the identify call, so the call that first sends the merchant's device can already return it. The match is permanent: every later identify call for that install returns the same value, and a later click never replaces it. rcamp is null when no campaign click matched.


Do and don't

Do

  • Use the URL from Ranksy as the final destination URL of each ad.
  • Keep your utm_* parameters, and add rcamp if you want the campaign back on /identify.
  • Call /identify for each install, with the merchant's ip and user_agent on the installing contact.

Don't

  • Don't build the URL by hand, and don't use one app's URL for the ads of a different app. The click would go to the wrong pixel.
  • Don't put the URL behind a shortener or a redirect that removes the query string.
  • Don't send your own server's IP address or user agent as the merchant's device.

Troubleshooting

The landing page shows "not found". The page serves only while the Meta Conversions API status of the app is Connected, and while the listing is live. If the status is Error, generate a new access token in Meta Events Manager and save it in Ranksy. See Meta Ads Attribution.

No ad clicks in Ranksy. Make sure that your live ads use the landing page URL and that nothing removes the query string. Ranksy records an ad click only when the URL has fbclid.

Installs do not match clicks. Make sure that your identify call sends contacts[].ip and contacts[].user_agent from the merchant's own browser request at install, not from your server.

rcamp is always null. Make sure that the ad URL has exactly one valid rcamp, that your identify call sends the merchant's IP address, and that the merchant installed within 7 days of the click.