Add checkout to your products on Google Merchant Center

Solved

Add checkout to your products on Google Merchant Center

BirdJoyNow
Visitor
1 0 0

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: 

"Add checkout to your products on Google

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.

Accepted Solution (1)

Armonika
Shopify Partner
4 1 2

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

 

 

 

View solution in original post

Replies 39 (39)

EmmanuelFlossie
Shopify Partner
3342 253 802

The URL structure is as followed: https://{domain}/cart/{variant ID}:{quantity}

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.

Armonika
Shopify Partner
4 1 2

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

 

 

 

EmmanuelFlossie
Shopify Partner
3342 253 802

Please note that you need to add the variant ID after /cart/

Not the id

It will otherwise not work

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
safetyvets
Visitor
1 0 2

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.

EmmanuelFlossie
Shopify Partner
3342 253 802

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

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Uni-Trend
Excursionist
31 0 25

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?

sarahpeacock
Shopify Partner
27 2 5

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.

Autographs4sale
Tourist
7 0 1

Nope. Nothing works.

EmmanuelFlossie
Shopify Partner
3342 253 802

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.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Uni-Trend
Excursionist
31 0 25

Hi,


Thanks for replying. I said when I click the "test" link, it works. But Google still doesn't like it. 

UniTrend_0-1700059901843.png

Then when I change, as you suggested, to put in a variant ID, I get this:

UniTrend_2-1700060235871.png

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?

InTheCoolShade
Visitor
1 0 0

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.

https://www.<mydomain>/cart/{id}:1

EmmanuelFlossie
Shopify Partner
3342 253 802

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.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
TomGGC
Excursionist
17 0 3

 We are having the same issue. Contacted Google support and this is what they said:

"

I understand that you are concerned about providing a checkout URL for the users to provide the option for a direct checkout for a smoother experience over your website.
 
I would recommend you add this link https://www.<domain>.com/checkout?item_id={id} which seems to be fine. However, it seems whenever we are trying to open the link for one second it seems the url is redirecting to the cart but then it automatically gets redirected to the homepage of the website."

I did try www.<domain>.com/cart?item_id={id} and this one seems to work on my end, but have not confirmed with Google yet. Pending approval. 
dgalant1
Visitor
1 0 0

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?

Screenshot 2024-01-07 at 10.07.50 AM.png

 

 

EmmanuelFlossie
Shopify Partner
3342 253 802

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.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
evkp
Visitor
2 0 0

Thanks! only this works: www.<domain>.com/cart?item_id={id}

Autographs4sale
Tourist
7 0 1

Correct. It doesn't work. Neither Google nor Shopify seem to know what the proper URL is for this. Extremely frustrating.

evkp
Visitor
2 0 0

actually only this works: www.<domain>.com/cart?item_id={id}

Postech
New Member
4 0 0
EmmanuelFlossie
Shopify Partner
3342 253 802

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/

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Bricklayer
Excursionist
10 0 2

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. 

EmmanuelFlossie
Shopify Partner
3342 253 802

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

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Bricklayer
Excursionist
10 0 2

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. 

EmmanuelFlossie
Shopify Partner
3342 253 802

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.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Bricklayer
Excursionist
10 0 2

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"?

EmmanuelFlossie
Shopify Partner
3342 253 802

https://example.com/cart/{id}:1

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Bricklayer
Excursionist
10 0 2

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? 

EmmanuelFlossie
Shopify Partner
3342 253 802

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.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Bricklayer
Excursionist
10 0 2

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. 

gangajalshop
Visitor
2 0 0

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

Autographs4sale
Tourist
7 0 1

It doesn't work. Neither Google nor Shopify seem to know what the proper URL is for this. Extremely frustrating.

EmmanuelFlossie
Shopify Partner
3342 253 802

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

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
gangajalshop
Visitor
2 0 0

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 

EmmanuelFlossie
Shopify Partner
3342 253 802

It should be https://gangajalshop.com/cart/47980647415976:1

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
Arian
Visitor
1 0 0

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

EmmanuelFlossie
Shopify Partner
3342 253 802

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

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
ivclub
Visitor
2 0 1

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?


EmmanuelFlossie
Shopify Partner
3342 253 802

Have you tested the URL's that don't work?

 

 https://shop.ivclub.com/cart/44305782571220:1 

 

For me the above link works.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.
ivclub
Visitor
2 0 1

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!