All things Shopify and commerce
Google will now show a checkout/cart link on your free listings. I need to know what link structure to use so that Google will show the checkout link for whatever product it is displaying.
Google puts it like this:
Give customers the option of going directly to your cart or checkout page by providing your store's URL structure. This can help increase conversions and sales."
This code must be universal in the sense that Google will populate the variant id of the product based on the specific item it is showing in the search.
Solved! Go to the solution
This is an accepted solution.
Hi ,
This link will work for your Google Merchant Center account.
https://my-shop-name.myshopify.com/cart/{id}:1
You can also find it in the Shopify help documentation:
https://help.shopify.com/en/manual/products/details/cart-permalink
You can also benefit from Google help documentation:
https://support.google.com/merchants/answer/13644598?hl=en
The URL structure is as followed: https://{domain}/cart/{variant ID}:{quantity}
This is an accepted solution.
Hi ,
This link will work for your Google Merchant Center account.
https://my-shop-name.myshopify.com/cart/{id}:1
You can also find it in the Shopify help documentation:
https://help.shopify.com/en/manual/products/details/cart-permalink
You can also benefit from Google help documentation:
https://support.google.com/merchants/answer/13644598?hl=en
Please note that you need to add the variant ID after /cart/
Not the id
It will otherwise not work
None of these solutions work. We have to send them to the Cart or Checkout from Merchant Center. I tried the url/cart/{id}:1 and the domain}/cart/{variant ID}:{quantity}.
Whereas just using the domain/cart or /checkout work fine when testing the link but is unacceptable for Merchant Center
if i leave off the 1 the link works just using {id} but it 404's when you test the link. Merchant Center is asking for a link for customers to go to the cart or checkout and must include {id} And adding variants and quantity was not acceptable either.
I have setup a lot of clients with no issues.
You do need to change {id} with the actual product variant ID.
For example
https://example.com/cart/123456789:1
When I click on "test URL" link with the default structure "https://uni-trendus.com/cart/{id}:1" it works. When I try changing it, as suggested, to "https://uni-trendus.com/cart/8631001579804" there's a form error "missing required parameter: {id}"
Anyone have any idea how to submit the checkout URL correctly to google merchant center?
Here are 3 resources that should help you resolve the issue.
Installing the Google & YouTube channel will give you a place to manage the Merchant Center feed.
I'd opt for this rather than doing it within the Merchant Center itself.
Alternatively, you can check out Shopify's documentation on permalinks. This might help you with troubleshooting.
Nope. Nothing works.
So if it works, why are you changing it?
If you are using GMC UI, then https://uni-trendus.com/cart/{id}:1
Is correct, assuming your product ID's are the default shopping id.
If it's not the default shopping ID, you need to add it in the feed as followed
https://uni-trendus.com/cart/8631001579804:1
Assuming the vairant ID you added is correct.
Hi,
Thanks for replying. I said when I click the "test" link, it works. But Google still doesn't like it.
Then when I change, as you suggested, to put in a variant ID, I get this:
Again, clicking on "test" works fine and it takes to me to my checkout with the product in the basket.
Since Google doesn't like that format, I can't even force a save.
Any thoughts?
I get the same results wit the message from google in red. I am using
https://<mydomain>/cart/{id}:1 which when you follow the link by pressing test, it looks ok. but yet will not allow for submission and shows the red "The checkout URL structure did not pass our review process and is not yet live."
Oddly, replacing 1 with 10 does work but will add 10 of the sku to the customers cart https://<mydomain>/cart/{id}:10
Then adding www works.
If there is a red banner saying error, please contact Google support, it seems that there is a bug inside Google Merchant Center.
I have not had these errors, make sure that the URL matches your verified and claimed URL. Maybe this is an issue, considering you said www works, non www does not work.
We are having the same issue. Contacted Google support and this is what they said:
"
I have been going around in circles with Google Support on this topic for over a week. Google's validation process requires that there is a 'productId' parameter in the URL. However, Shopify does not allow this parameter in the Checkout URL.
Can't someone at Shopify reach out to Google and resolve this?
The checkout URL's work correctly. If it does not work, that means the ID is wrong.
The ID needs to be the variant ID.
Or if you are submitting a Shopify ID, that looks like shopify_US_12345678_123456789, then Google will automatically choose the last part of the id for the cart.
I have set this up with many shopify accounts, so if it doesn't work, it generally means you have not done something correct or the id is not a SHopify ID, but an SKU instead.
Correct. It doesn't work. Neither Google nor Shopify seem to know what the proper URL is for this. Extremely frustrating.
where to get from this is my check out page https://store.neotech.ae/checkouts/cn/Z2NwLWFzaWEtc291dGhlYXN0MTowMUhRMDFNNkUzNktIUkZERzRHSzhORjYzSA...
how to get this www.<domain>.com/cart?item_id={id}
Go to Google Merchant Center, and enable checkout here.
And paste https://store.neotech.ae/cart/{id}:1
If you still struggle to know what to do, consider reading: https://feedarmy.com/kb/add-shopify-checkout-link-in-google-merchant-center/
Hello. When I use https://mystore.com/cart/{id}:1 and hit test, it just goes to a blank page. Can you advise please? I also tried adding my product id before the ":1" and I'm also getting a blank page when trying to test. Thank you in advance for your help.
If it does not work, that means the product ID is not the default shopify ID. Instead it means you have using an SKU or some other type of ID.
In that case, you need to manually submit the URL's in the feed: https://support.google.com/merchants/answer/13580733
In the message to another user above, you say "You do need to change {id} with the actual product variant ID" but now you're saying it has to be the default shopify ID. Can you clarify please? Even when I use the default shopify ID, I get a "Missing required parameter: {id}" error message from google merchant center. I cannot test with that message present. Thanks.
Variant id is in reference to the attribute checkout template.
The id is in reference to the Google Merchant Center UI.
Two very different scenarios.
And my comment to you is also about something complety different.
The comment I made is referring to the product ID, not the checkout setup.
If your product ID does not look like shopify_US_12346789_1234567988
Then using the {id} in the checkout link for the GMC UI, it will not work.
That is what I said. Please note, as there are many different people commenting on 1 thread, it is easy to get confused, because what is correct for one person, is not so for another.
You may have other issues, that I do not know about, or you may not waited long enough. I don't know. But I have set this up with hundreds of accounts, zero issues. So most lilekly something is not correct in your setup.
If you believe it is correct, then contact Google directly to report the bug.
Ya I'm referring to the Google Merchant UI setup for the "add checkout to your products on Google". What is the proper URL structure to use under "Your store's URL structure"?
https://example.com/cart/{id}:1
Ya so we're back to the same issue as everybody else above. In place of the {id}, I use the product id correct? for example, 8440106189029. then :1 to end the line. The error says the {id} is missing. Unless {id} itself is actually typed as {id} it is saying it's missing. Does that make sense?
The details I provided is correct, if it doesn't work, that means you can't set it up the way you want it. In this case you need to set it up using the checkout link template: https://support.google.com/merchants/answer/13580733
Unfortunately, without physically looking in the account, I will not know what your specific issues are. If you need this fixed, then reach out to Google directly, or hire someone who can look into your account.
As indicated, I have set this up so many times, it's always correct. Not sure what your specific issues are.
I figured out the issue and wanted to post here for folks in the future that may encounter this issue. This URL format is correct, https://example.com/cart/{id}:1. But if you are getting the error, it's because of a handful of issues on the other side of the connection. First, make sure the products connected are in stock otherwise it will error out. Also, setup the google & youtube app through the sales channels section and connect the google merchant center account. Then get your items loaded via API into google merchant center. These 3 steps fixed the connection for me. Hope that helps any future frustrated users.
Hi, Your format totally not working. Hope you communicating here with some secret. my link test failed https://gangajalshop.com/cart/shopify_IN_8375859708072_47980647415976={id}:1
It doesn't work. Neither Google nor Shopify seem to know what the proper URL is for this. Extremely frustrating.
I have tested hundreds of accounts, and I'm always puzzled why merchants are having this issue.
And I believe there is just a misunderstanding.
Can you test by doing the following, replace the 123456789 value below with your variant ID
And change example.com with your domain URL.
https://example.com/cart/123456789:1
If you continue to struggle feel free to reach out.
The only way this can fail, is if your product id's in GMC don't look like shopify_US_123456789_123456789
Hi Partner,
Checkout link above stated not working. site trying to open checkout / cart page, but later turn back to empty web landing page only. link used https://www.gangajalshop.com/checkout?shopify_IN_8375859708072_47980647415976={id}:1
Please advise on troubleshooting.. thanks
It should be https://gangajalshop.com/cart/47980647415976:1
Hi Emmanuel!
Hope you are doing well?! I am having the same issue and have been in touch with your collegues but they couldn't figure out. I have tried all combos, either the format is wrong or it comes to a blank page when i click test. the last bid is when i put an item and click checkout i get following url:
https://print-o-mania.com/checkouts/cn/Z2NwLWV1cm9wZS13ZXN0NDowMUo0VzhSRkhHOVRQSFlHRzVYTUE1OUdQRg
that is wrong format, how should i replace it so it is the right format so to say:
https://print-o-mania.com/cart/{id}:1
If you are submitting product ids that look like shopify_US_123456789_123456789
If not, then you can't use the template, and you will need to submit your own checkout template as per: https://support.google.com/merchants/answer/13580733?hl=en
I'm having a strange issue with this. I have the checkout link set up correctly to some degree - because it works for 19 of my products, but does not work for 15 of my products. Very confused on how to even troubleshoot this.
My checkout link in GMC business info is: https://shop.ivclub.com/cart/{id}:1
All my products use the shopify ID, for example: "shopify_US_8107327389908_44305782571220"
But, I do not understand why some products work just fine while others are getting the "invalid checkout link" error. What am I missing?
Have you tested the URL's that don't work?
https://shop.ivclub.com/cart/44305782571220:1
For me the above link works.
Funny thing actually - I simply went to each of the products in shopify and simply added a space to the description and saved it, and then GMC refreshed to show the correct information. All fixed now. Thank you!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024