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
3 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 27 (27)

EmmanuelFlossie
Shopify Partner
3094 226 741

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
3 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
3094 226 741

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
3094 226 741

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
23 0 22

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.

EmmanuelFlossie
Shopify Partner
3094 226 741

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
23 0 22

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
3094 226 741

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
3094 226 741

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}

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
3094 226 741

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
Tourist
7 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
3094 226 741

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
Tourist
7 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
3094 226 741

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
Tourist
7 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
3094 226 741

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
Tourist
7 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
3094 226 741

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
Tourist
7 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.