Are you using Shopify's Google channel? They will automatically do this for you.
Yes, there is a way. The easiest is to import from analytics which should be setup fully and accurately already. (If you need help, follow this.) With that done, you can create goals in analytics and import them into Google Ads. Far easier then creating conversion snippets directly through Google Ads, which often break from theme changes.
Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping