AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

3.8K members online now
3.8K members online now
For questions related to Google Shopping and Merchant Center. Learn to optimize your Shopping ads
Guide Me

Changing price on landing page with javascript

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

We are using the Shopify platform for our site. For users browsing the site, the default variant is the middle priced one (food products, variants are based on weight). However. In Shopify, we can only set up one actual landing page for the product, using that as the default price. The users can use a form, which triggers some javascript to select a different weight/price to purchase.


For our Google Shopping feed, we'd like to show the lowest priced variant though. When the user lands on the page, we would use javascript to immediately change the displayed price to match what's in the Google Shopping feed (i.e. the HTML source would look like it's the middle priced variant, but the user would not know the difference). Is this allowed, or would the crawler identify the landing page as having a different price than what's listed in our feed?

1 Expert replyverified_user

Re: Changing price on landing page with javascript

Top Contributor
# 2
Top Contributor


generally, the price submitted must match the displayed price, exactly.
and all variants submitted must be crawlable by all google's crawlers


if the price does not match for a variant then, the choices are usually:

(a) use a server-side solution such as php, python, etc;


(b) do not submit any variants -- submit only the (variant)
item that matches the default (price) on the page exactly;


(c) do not submit the item as a shopping-campaign but use
other campaign-types and ad-formats to advertise the item.