Skip to content

Landing pages outside Shopify

If a smart link sends visitors straight to your Shopify store, there is nothing to do on this page. It is for funnels with a page in between: an ad goes to a smart link, the smart link sends the visitor to a landing page built outside Shopify (in Unbounce, Instapage or any other page builder), and a button on that page sends them on to your store. That landing page must pass the link’s URL parameters through to the store, or GrowthFlow can’t tell which click an order came from.

When a visitor opens a smart link, GrowthFlow sends them to the destination with the link’s query string kept and two parameters of its own added:

  • gf_cid — the click, one per visit to the link;
  • gf_var — the experiment variant the visitor was assigned. It is only there while an experiment is running on the link.

A visitor who arrives on your landing page from a smart link has an address such as:

https://pages.yourstore.com/spring?utm_source=meta&gf_cid=01JB8Z5W6Q3N7K2M4P9R0T1V2X&gf_var=01JB8Z4C2D7E9F0G1H3J5K6M8N

GrowthFlow matches an order to its click by finding gf_cid in the address of the store page the visitor arrives on: the GrowthFlow pixel reads it there, and Shopify keeps the first page of the visit as the order’s landing URL. A page in between that sends the visitor on to https://yourstore.com/products/kit without the parameters breaks that chain: the order reaches GrowthFlow, but nothing on it says which click it came from.

Pages on your store itself (your theme, and pages made with page-builder apps that run inside your Shopify store) are not affected: the visitor is already on the store.

Most page builders have a setting on each button or link that adds the visitor’s incoming URL parameters to the link’s address. It is usually called something like Pass URL parameters, Pass through URL parameters or Forward query string.

  1. Open the landing page in your page builder.
  2. Select a button that links to your store and switch the setting on.
  3. Repeat for every button, text link and image that links to your store, including the ones in a sticky header, a footer, a popup or a form’s confirmation step. The setting is per link: one button with it on doesn’t cover the others.
  4. Publish the page again.
  5. Check it.

Links to your store must go straight to the store address (https://yourstore.com/…), not through a link shortener or another tracking redirect, which may drop the parameters on the way.

If your builder has no such setting, ask its support how to pass URL parameters on to outgoing links, or build the page on your store instead.

In Unbounce’s Classic Builder, for each button: select the button, scroll the Properties tab to the FORM CONFIRMATION section, choose Go to URL and tick Pass through URL Parameters. Then save and republish the page. Source: Passing Incoming URL Parameters to Outgoing Button Links (Unbounce documentation).

In Instapage, for each button, text link or image: select it, open Link setup, choose Outside URL, enter your store address, switch on Pass URL param and select Save. Then update the page.

A form that redirects to your store after it is submitted has its own setting: select the form, choose Edit Form, open Form submissions, choose Outside URL under Page location, enter your store address, switch on Pass URL parameters and select Update. Close the editor, then Save and Update the page. Source: Send parameters through the URL upon redirect (Instapage help center).

Notes for other page builders will follow. Until then, use the steps above with your builder’s own name for the setting.

  1. Open the smart link (for example https://go.yourstore.com/spring) in a private browser window.
  2. On the landing page, look at the address bar: it carries gf_cid= (and gf_var= while an experiment is running). If it doesn’t, see Troubleshooting.
  3. Select the button that takes you to your store.
  4. On your store, look at the address bar again: it must still carry gf_cid= with the same value as on the landing page. Repeat for each button that links to the store.
  5. In GrowthFlow, open Links and select the link. Your click appears in the Clicks panel within a few seconds. Its Click id (use Copy click id) is the value you saw in gf_cid.

To see a whole order go through, place a test order on the store after step 4: on the Orders page it is credited to the link with the signal Pixel or Landing URL and marked Test.

The visit to the smart link is still counted: the click is recorded and, in an experiment, counts as a visitor of its variant. Only the order can’t be tied to it. Whether it is credited at all then depends on your domains:

  • The smart link and the store share a root domain (for example go.yourstore.com and yourstore.com). The smart link sets a visitor cookie for the whole root domain, and the GrowthFlow pixel can read it on the store, so the order can still be credited by the signal Visitor cookie. This needs the pixel to run, which it only does for visitors who allow analytics. On Domains, an active domain’s row shows where the cookie is set, for example Visitor cookie on .yourstore.com.
  • They don’t (for example a smart link on go.otherbrand.com, or a store reached only on its myshopify.com address). There is no fallback: the order shows on Orders as Unattributed · No smart-link click reached the store.

Unattributed orders lower Attributed orders and the coverage under Attributed revenue on the Orders page. In an experiment the harm is more than missing numbers: if one variant’s landing page drops the parameters and another variant’s page doesn’t, the first variant’s visitors are counted but their orders are not, so it looks worse than it is. See How attribution works for how coverage is counted.

The cookie is a safety net, not a replacement: set up parameter passing even when your domains share a root domain.

  • The landing page’s address has no gf_cid. The smart link’s destination redirected and dropped the query string on the way, for example from http:// to https://, from www. to the bare domain, or from an old address to a new one. Use the page’s final address, exactly as it shows in the address bar once it has loaded, as the destination.
  • The landing page has gf_cid, the store doesn’t. The button’s pass-through setting is off, the page wasn’t published again after switching it on, or the button goes through a link shortener or tracking redirect that drops the parameters. Link straight to the store address.
  • Some buttons keep the parameters and others don’t. The setting is per button or link. Check every link to the store, including text links, images, menus, sticky headers and footers. A link typed into the page’s HTML by hand has a fixed address: it never carries the parameters unless your builder offers a pass-through setting for it.
  • Visitors who use a form or a popup lose the parameters. A form or a popup that sends visitors to the store after they submit it uses its own redirect setting, separate from the page’s buttons. Switch parameter passing on there too. Pass the incoming parameters only: don’t add the form’s answers, such as an email address, to the store address.
  • Your store is password-protected. Every development store, and every store before launch, asks for a password. Shopify then records the password page as the visit’s landing page, so the Landing URL signal is lost for visitors who had to enter the password; the pixel still works. A live store without a password is not affected. To test on a password-protected store: enter the password, delete the store’s _shopify_analytics, _shopify_marketing and _merchant_analytics cookies in your browser (keep _shopify_essential, which holds your password access), then open the smart link again.
  • The store has gf_cid but no gf_var. Nothing is wrong: gf_var is only added while an experiment is running on the link.
  • A test order shows “Not checked yet”. Wait. When the pixel doesn’t report the checkout, the order is attributed by its landing URL once GrowthFlow has waited 10 minutes for a pixel event and run its next check, which runs every 15 minutes: up to about 25 minutes after the order.