Showing Shopify products based on geolocation

Category
2 minutes

How does Geo Targetly's Geo Content service work?

Geo Targetly is a geo personalization tool for websites. It is used to make a website 'dynamic' to suit a visitor's geolocation (country, state or city). The process of tailoring a website to suit geolocation is known as geo targeting or geo personalization.

Geo Targetly's Geo Content service is one of the products offered by Geo Targetly. It's key purpose is to modify, show or hide content in a website based on a visitor's geolocation.

Hence the Geo Content service offered by us is a perfect tool that can be used in a Shopify online store for displaying only products relevant to a visitor's country, state or city.

This quick three step guide will give you an idea of how easy it is to geo target products in Shopify:

Step 1: Create a Geo Content service

- Sign up for a Geo Targetly's 14 day free trial and create a new Geo Content service

create a Geo Content service for your Shopify store

- Add your Shopify store URL or the page URL where the geo targeted products will be show

Add your Shopify store URL or page URL to the Geo Content settings

- Under 'Settings', chose to 'Enter content directly in your website using smart HTML wrappers'

Generate geolocation classes to be used in the Shopify theme

- Create your desired content rules by adding location targets.

Create rules for each geolocation that needs to be targeted in your Shopify store

- Save the setup to obtain the smart HTML location based classes and the Geo Content code snippet

Save the setup to obtain geo content classes
generate geo content code for your Shopify website

Step 2: Create product collections for each location

- Go to 'Products' > 'Collections' in Shopify admin

Create a new product collection in your Shopify store

- Create a collection for each of the Geo Content rules i.e. one collection for each target country in this case

Create product collections to target each geolocation in your Shopify admin

Step 3: Edit your Shopify theme to display desired collections based on geolocation

- Go to your Shopify theme by clicking on 'Online Store' under 'Sales Channels'

Edit your Shopify theme file where you need to show geo targeted products

- Click 'Actions' > 'Edit code' to edit the code for each individual Shopify page

Edit Shopify theme

- Find the .liquid file that controls the page that needs to display of products in the page that needs to show geo targeted products. This file can either be a theme file or section file.

Find the Shopify theme liquid file which displays the product grid in your Shopify store

- Edit the file and find the code that displays the products in a grid. It should look like the highlighted code below. This code basically loops through your products and displays it in the grid.

Copy the Shopify product grid

- Add the required Geo Content class to the grid element. Since the first Geo Content rule is for US visitors, this class needs to be added to the grid that will be displaying products from the USA Products collection.

- Modify the for loop that displays the products so it only displays products from a particular collection. For example if your collection name is USA Products then for product in collections.usa-products.products

Add the geo content classes to the Shopify grid and set the for loop to display collections from the geo targeted location

- Duplicate this grid for each Geo Content rule and add the necessary Geo Content classes as well as modify the for loop to show products from the respective collection.

Duplicate Shopify grid for each geolocation

- Paste the Geo Content JavaScript code snippet just before the closing tag in the theme.footer.liquid file.

paste geo content code snippet in Shopify code footer

All done! A simple way to display products in your Shopify store pages based on visitor geolocation

Targeting products to visitors from specific locations can greatly increase conversion rate and sales as only relevant products are shown to visitors. This method of Geo Targeting is commonly used in e-commerce stores to provide a personalized 'feel' for customers and is a great way to improve engagement.

Feel free to signup for our free trial and give our Geo Content service a go!

How does Geo Targetly's Geo Content service work?

Geo Targetly is a geo personalization tool for websites. It is used to make a website 'dynamic' to suit a visitor's geolocation (country, state or city). The process of tailoring a website to suit geolocation is known as geo targeting or geo personalization.

Geo Targetly's Geo Content service is one of the products offered by Geo Targetly. It's key purpose is to modify, show or hide content in a website based on a visitor's geolocation.

Hence the Geo Content service offered by us is a perfect tool that can be used in a Shopify online store for displaying only products relevant to a visitor's country, state or city.

This quick three step guide will give you an idea of how easy it is to geo target products in Shopify:

Step 1: Create a Geo Content service

- Sign up for a Geo Targetly's 14 day free trial and create a new Geo Content service

create a Geo Content service for your Shopify store

- Add your Shopify store URL or the page URL where the geo targeted products will be show

Add your Shopify store URL or page URL to the Geo Content settings

- Under 'Settings', chose to 'Enter content directly in your website using smart HTML wrappers'

Generate geolocation classes to be used in the Shopify theme

- Create your desired content rules by adding location targets.

Create rules for each geolocation that needs to be targeted in your Shopify store

- Save the setup to obtain the smart HTML location based classes and the Geo Content code snippet

Save the setup to obtain geo content classes
generate geo content code for your Shopify website

Step 2: Create product collections for each location

- Go to 'Products' > 'Collections' in Shopify admin

Create a new product collection in your Shopify store

- Create a collection for each of the Geo Content rules i.e. one collection for each target country in this case

Create product collections to target each geolocation in your Shopify admin

Step 3: Edit your Shopify theme to display desired collections based on geolocation

- Go to your Shopify theme by clicking on 'Online Store' under 'Sales Channels'

Edit your Shopify theme file where you need to show geo targeted products

- Click 'Actions' > 'Edit code' to edit the code for each individual Shopify page

Edit Shopify theme

- Find the .liquid file that controls the page that needs to display of products in the page that needs to show geo targeted products. This file can either be a theme file or section file.

Find the Shopify theme liquid file which displays the product grid in your Shopify store

- Edit the file and find the code that displays the products in a grid. It should look like the highlighted code below. This code basically loops through your products and displays it in the grid.

Copy the Shopify product grid

- Add the required Geo Content class to the grid element. Since the first Geo Content rule is for US visitors, this class needs to be added to the grid that will be displaying products from the USA Products collection.

- Modify the for loop that displays the products so it only displays products from a particular collection. For example if your collection name is USA Products then for product in collections.usa-products.products

Add the geo content classes to the Shopify grid and set the for loop to display collections from the geo targeted location

- Duplicate this grid for each Geo Content rule and add the necessary Geo Content classes as well as modify the for loop to show products from the respective collection.

Duplicate Shopify grid for each geolocation

- Paste the Geo Content JavaScript code snippet just before the closing tag in the theme.footer.liquid file.

paste geo content code snippet in Shopify code footer

All done! A simple way to display products in your Shopify store pages based on visitor geolocation

Targeting products to visitors from specific locations can greatly increase conversion rate and sales as only relevant products are shown to visitors. This method of Geo Targeting is commonly used in e-commerce stores to provide a personalized 'feel' for customers and is a great way to improve engagement.

Feel free to signup for our free trial and give our Geo Content service a go!

How does Geo Targetly's Geo Content service work?

Geo Targetly is a geo personalization tool for websites. It is used to make a website 'dynamic' to suit a visitor's geolocation (country, state or city). The process of tailoring a website to suit geolocation is known as geo targeting or geo personalization.

Geo Targetly's Geo Content service is one of the products offered by Geo Targetly. It's key purpose is to modify, show or hide content in a website based on a visitor's geolocation.

Hence the Geo Content service offered by us is a perfect tool that can be used in a Shopify online store for displaying only products relevant to a visitor's country, state or city.

This quick three step guide will give you an idea of how easy it is to geo target products in Shopify:

Step 1: Create a Geo Content service

- Sign up for a Geo Targetly's 14 day free trial and create a new Geo Content service

create a Geo Content service for your Shopify store

- Add your Shopify store URL or the page URL where the geo targeted products will be show

Add your Shopify store URL or page URL to the Geo Content settings

- Under 'Settings', chose to 'Enter content directly in your website using smart HTML wrappers'

Generate geolocation classes to be used in the Shopify theme

- Create your desired content rules by adding location targets.

Create rules for each geolocation that needs to be targeted in your Shopify store

- Save the setup to obtain the smart HTML location based classes and the Geo Content code snippet

Save the setup to obtain geo content classes
generate geo content code for your Shopify website

Step 2: Create product collections for each location

- Go to 'Products' > 'Collections' in Shopify admin

Create a new product collection in your Shopify store

- Create a collection for each of the Geo Content rules i.e. one collection for each target country in this case

Create product collections to target each geolocation in your Shopify admin

Step 3: Edit your Shopify theme to display desired collections based on geolocation

- Go to your Shopify theme by clicking on 'Online Store' under 'Sales Channels'

Edit your Shopify theme file where you need to show geo targeted products

- Click 'Actions' > 'Edit code' to edit the code for each individual Shopify page

Edit Shopify theme

- Find the .liquid file that controls the page that needs to display of products in the page that needs to show geo targeted products. This file can either be a theme file or section file.

Find the Shopify theme liquid file which displays the product grid in your Shopify store

- Edit the file and find the code that displays the products in a grid. It should look like the highlighted code below. This code basically loops through your products and displays it in the grid.

Copy the Shopify product grid

- Add the required Geo Content class to the grid element. Since the first Geo Content rule is for US visitors, this class needs to be added to the grid that will be displaying products from the USA Products collection.

- Modify the for loop that displays the products so it only displays products from a particular collection. For example if your collection name is USA Products then for product in collections.usa-products.products

Add the geo content classes to the Shopify grid and set the for loop to display collections from the geo targeted location

- Duplicate this grid for each Geo Content rule and add the necessary Geo Content classes as well as modify the for loop to show products from the respective collection.

Duplicate Shopify grid for each geolocation

- Paste the Geo Content JavaScript code snippet just before the closing tag in the theme.footer.liquid file.

paste geo content code snippet in Shopify code footer

All done! A simple way to display products in your Shopify store pages based on visitor geolocation

Targeting products to visitors from specific locations can greatly increase conversion rate and sales as only relevant products are shown to visitors. This method of Geo Targeting is commonly used in e-commerce stores to provide a personalized 'feel' for customers and is a great way to improve engagement.

Feel free to signup for our free trial and give our Geo Content service a go!

How does Geo Targetly's Geo Content service work?

Geo Targetly is a geo personalization tool for websites. It is used to make a website 'dynamic' to suit a visitor's geolocation (country, state or city). The process of tailoring a website to suit geolocation is known as geo targeting or geo personalization.

Geo Targetly's Geo Content service is one of the products offered by Geo Targetly. It's key purpose is to modify, show or hide content in a website based on a visitor's geolocation.

Hence the Geo Content service offered by us is a perfect tool that can be used in a Shopify online store for displaying only products relevant to a visitor's country, state or city.

This quick three step guide will give you an idea of how easy it is to geo target products in Shopify:

Step 1: Create a Geo Content service

- Sign up for a Geo Targetly's 14 day free trial and create a new Geo Content service

create a Geo Content service for your Shopify store

- Add your Shopify store URL or the page URL where the geo targeted products will be show

Add your Shopify store URL or page URL to the Geo Content settings

- Under 'Settings', chose to 'Enter content directly in your website using smart HTML wrappers'

Generate geolocation classes to be used in the Shopify theme

- Create your desired content rules by adding location targets.

Create rules for each geolocation that needs to be targeted in your Shopify store

- Save the setup to obtain the smart HTML location based classes and the Geo Content code snippet

Save the setup to obtain geo content classes
generate geo content code for your Shopify website

Step 2: Create product collections for each location

- Go to 'Products' > 'Collections' in Shopify admin

Create a new product collection in your Shopify store

- Create a collection for each of the Geo Content rules i.e. one collection for each target country in this case

Create product collections to target each geolocation in your Shopify admin

Step 3: Edit your Shopify theme to display desired collections based on geolocation

- Go to your Shopify theme by clicking on 'Online Store' under 'Sales Channels'

Edit your Shopify theme file where you need to show geo targeted products

- Click 'Actions' > 'Edit code' to edit the code for each individual Shopify page

Edit Shopify theme

- Find the .liquid file that controls the page that needs to display of products in the page that needs to show geo targeted products. This file can either be a theme file or section file.

Find the Shopify theme liquid file which displays the product grid in your Shopify store

- Edit the file and find the code that displays the products in a grid. It should look like the highlighted code below. This code basically loops through your products and displays it in the grid.

Copy the Shopify product grid

- Add the required Geo Content class to the grid element. Since the first Geo Content rule is for US visitors, this class needs to be added to the grid that will be displaying products from the USA Products collection.

- Modify the for loop that displays the products so it only displays products from a particular collection. For example if your collection name is USA Products then for product in collections.usa-products.products

Add the geo content classes to the Shopify grid and set the for loop to display collections from the geo targeted location

- Duplicate this grid for each Geo Content rule and add the necessary Geo Content classes as well as modify the for loop to show products from the respective collection.

Duplicate Shopify grid for each geolocation

- Paste the Geo Content JavaScript code snippet just before the closing tag in the theme.footer.liquid file.

paste geo content code snippet in Shopify code footer

All done! A simple way to display products in your Shopify store pages based on visitor geolocation

Targeting products to visitors from specific locations can greatly increase conversion rate and sales as only relevant products are shown to visitors. This method of Geo Targeting is commonly used in e-commerce stores to provide a personalized 'feel' for customers and is a great way to improve engagement.

Feel free to signup for our free trial and give our Geo Content service a go!

How does Geo Targetly's Geo Content service work?

Geo Targetly is a geo personalization tool for websites. It is used to make a website 'dynamic' to suit a visitor's geolocation (country, state or city). The process of tailoring a website to suit geolocation is known as geo targeting or geo personalization.

Geo Targetly's Geo Content service is one of the products offered by Geo Targetly. It's key purpose is to modify, show or hide content in a website based on a visitor's geolocation.

Hence the Geo Content service offered by us is a perfect tool that can be used in a Shopify online store for displaying only products relevant to a visitor's country, state or city.

This quick three step guide will give you an idea of how easy it is to geo target products in Shopify:

Step 1: Create a Geo Content service

- Sign up for a Geo Targetly's 14 day free trial and create a new Geo Content service

create a Geo Content service for your Shopify store

- Add your Shopify store URL or the page URL where the geo targeted products will be show

Add your Shopify store URL or page URL to the Geo Content settings

- Under 'Settings', chose to 'Enter content directly in your website using smart HTML wrappers'

Generate geolocation classes to be used in the Shopify theme

- Create your desired content rules by adding location targets.

Create rules for each geolocation that needs to be targeted in your Shopify store

- Save the setup to obtain the smart HTML location based classes and the Geo Content code snippet

Save the setup to obtain geo content classes
generate geo content code for your Shopify website

Step 2: Create product collections for each location

- Go to 'Products' > 'Collections' in Shopify admin

Create a new product collection in your Shopify store

- Create a collection for each of the Geo Content rules i.e. one collection for each target country in this case

Create product collections to target each geolocation in your Shopify admin

Step 3: Edit your Shopify theme to display desired collections based on geolocation

- Go to your Shopify theme by clicking on 'Online Store' under 'Sales Channels'

Edit your Shopify theme file where you need to show geo targeted products

- Click 'Actions' > 'Edit code' to edit the code for each individual Shopify page

Edit Shopify theme

- Find the .liquid file that controls the page that needs to display of products in the page that needs to show geo targeted products. This file can either be a theme file or section file.

Find the Shopify theme liquid file which displays the product grid in your Shopify store

- Edit the file and find the code that displays the products in a grid. It should look like the highlighted code below. This code basically loops through your products and displays it in the grid.

Copy the Shopify product grid

- Add the required Geo Content class to the grid element. Since the first Geo Content rule is for US visitors, this class needs to be added to the grid that will be displaying products from the USA Products collection.

- Modify the for loop that displays the products so it only displays products from a particular collection. For example if your collection name is USA Products then for product in collections.usa-products.products

Add the geo content classes to the Shopify grid and set the for loop to display collections from the geo targeted location

- Duplicate this grid for each Geo Content rule and add the necessary Geo Content classes as well as modify the for loop to show products from the respective collection.

Duplicate Shopify grid for each geolocation

- Paste the Geo Content JavaScript code snippet just before the closing tag in the theme.footer.liquid file.

paste geo content code snippet in Shopify code footer

All done! A simple way to display products in your Shopify store pages based on visitor geolocation

Targeting products to visitors from specific locations can greatly increase conversion rate and sales as only relevant products are shown to visitors. This method of Geo Targeting is commonly used in e-commerce stores to provide a personalized 'feel' for customers and is a great way to improve engagement.

Feel free to signup for our free trial and give our Geo Content service a go!

How does Geo Targetly's Geo Content service work?

Geo Targetly is a geo personalization tool for websites. It is used to make a website 'dynamic' to suit a visitor's geolocation (country, state or city). The process of tailoring a website to suit geolocation is known as geo targeting or geo personalization.

Geo Targetly's Geo Content service is one of the products offered by Geo Targetly. It's key purpose is to modify, show or hide content in a website based on a visitor's geolocation.

Hence the Geo Content service offered by us is a perfect tool that can be used in a Shopify online store for displaying only products relevant to a visitor's country, state or city.

This quick three step guide will give you an idea of how easy it is to geo target products in Shopify:

Step 1: Create a Geo Content service

- Sign up for a Geo Targetly's 14 day free trial and create a new Geo Content service

create a Geo Content service for your Shopify store

- Add your Shopify store URL or the page URL where the geo targeted products will be show

Add your Shopify store URL or page URL to the Geo Content settings

- Under 'Settings', chose to 'Enter content directly in your website using smart HTML wrappers'

Generate geolocation classes to be used in the Shopify theme

- Create your desired content rules by adding location targets.

Create rules for each geolocation that needs to be targeted in your Shopify store

- Save the setup to obtain the smart HTML location based classes and the Geo Content code snippet

Save the setup to obtain geo content classes
generate geo content code for your Shopify website

Step 2: Create product collections for each location

- Go to 'Products' > 'Collections' in Shopify admin

Create a new product collection in your Shopify store

- Create a collection for each of the Geo Content rules i.e. one collection for each target country in this case

Create product collections to target each geolocation in your Shopify admin

Step 3: Edit your Shopify theme to display desired collections based on geolocation

- Go to your Shopify theme by clicking on 'Online Store' under 'Sales Channels'

Edit your Shopify theme file where you need to show geo targeted products

- Click 'Actions' > 'Edit code' to edit the code for each individual Shopify page

Edit Shopify theme

- Find the .liquid file that controls the page that needs to display of products in the page that needs to show geo targeted products. This file can either be a theme file or section file.

Find the Shopify theme liquid file which displays the product grid in your Shopify store

- Edit the file and find the code that displays the products in a grid. It should look like the highlighted code below. This code basically loops through your products and displays it in the grid.

Copy the Shopify product grid

- Add the required Geo Content class to the grid element. Since the first Geo Content rule is for US visitors, this class needs to be added to the grid that will be displaying products from the USA Products collection.

- Modify the for loop that displays the products so it only displays products from a particular collection. For example if your collection name is USA Products then for product in collections.usa-products.products

Add the geo content classes to the Shopify grid and set the for loop to display collections from the geo targeted location

- Duplicate this grid for each Geo Content rule and add the necessary Geo Content classes as well as modify the for loop to show products from the respective collection.

Duplicate Shopify grid for each geolocation

- Paste the Geo Content JavaScript code snippet just before the closing tag in the theme.footer.liquid file.

paste geo content code snippet in Shopify code footer

All done! A simple way to display products in your Shopify store pages based on visitor geolocation

Targeting products to visitors from specific locations can greatly increase conversion rate and sales as only relevant products are shown to visitors. This method of Geo Targeting is commonly used in e-commerce stores to provide a personalized 'feel' for customers and is a great way to improve engagement.

Feel free to signup for our free trial and give our Geo Content service a go!

Author
5th October 2017

Real stories of geo-targeting impact

William D.

Small Business

⭐⭐⭐⭐⭐
Feb 26, 2024

An Incredibly Handy Tool for Your International Customers

Geo targetly allows us to redirect our international customer to specific pages and make sure that they can get the right UX. It is very helpful when you have like us different currency to manage. Also it is very easy to implement on your Webflow website.

Michal C.

Entrepreneur

⭐⭐⭐⭐⭐
Aug 15, 2024

Geo Targetly Is a Great Option for My Multiple Shopify Sites

@GeoTargetly - Love this tool for global e-commerce redirects. I use it on several Shopify sites and love it. You can use one link and send people to different links based on their location and a ton of other stuff too.
#globalecom #ecommerce #shopifystore

Cheryl T.

Marketer

⭐⭐⭐⭐⭐
Oct 4, 2021

It Is Very Easy to Use On Wix - the Help Articles Were Useful

We wanted to be able to segment certain landing pages for certain geographical locations and using the redirect page especially for our pricing pages was extremely helpful in helping us achieve this task. It has allowed us to target certain landing pages effectively.

Mainak G.

Psychologist

⭐⭐⭐⭐⭐
Nov 28, 2023

A Game Changer For Global Business

As the backbone of our emerging global approach, Geo targetly has been holding our back. It's hassle free, they transform your website in the most appropriate ways for different countries, tribes, localities. Besides top notch features customer support is amazing.

Chris T.

Managing Director

⭐⭐⭐⭐⭐
Jan 12, 2021

"Geo Redirects Made Easy" - Great Tool And Very Attentive Support

I really liked how easy it was to integrate the geo redirects into our Shopify website with a single block of code. The user interface also made it simple to define our business rules with regard to how we want users to be directed around our 3 sites.

Daan D.

Digital Marketing Manager

⭐⭐⭐⭐⭐
Oct 4, 2021

We Have Seen a Great Increase In Our Traffic

Very easy to set up and run. We use Geo Targetly to set up redirections for our specific geo based versions of our website. We have seen a great increase in our traffic and it has been a helpful addition to our tool stack. It's very useful and does what it says.

Start in just a few clicks

try 14 days free
Your Privacy

We uses cookies to improve your experience on our site, analyse site traffic and to show you relevant content. By using our website, you consent to our use of cookies. For more information please, see our Privacy Policy

ACCEPT ALL
ACCEPT NECESSARY
REJECT ALL