Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How can we get the full landing page URL (including query string parameters) through the APIs?

How can we get the full landing page URL (including query string parameters) through the APIs?

OmarTrejoPM
Shopify Partner
1 0 5

We'd like to pull the full URL on which users land (including query string parameters). We've tried doing so through `customerVisit.landingPage` in the Admin GraphQL API [1] and the Reports API [2], but we were only able to retrieve the landing page URL without the query string parameters. How can we get the full URL including query string parameters through the APIs? We see the data being available in the sales report in the GUI.

 

Thanks

 

[1] https://shopify.dev/api/admin-graphql

[2] https://shopify.dev/api/admin-rest/2022-01/resources/report

Reply 1 (1)

AmyBranvibe
Visitor
1 0 1

I think this is a Bug of Shopify, landing_site, referring_site ( the 'REST Admin API version of customerVisit.landingPage and customerVisit.referrerUrl) contains query parameters, but if you're using Grapqlql Admin API, query strings all gone for the same order.