Skip to main content
Question

Use a Klaviyo form to direct Canadian shoppers to the canadian version of whatever link they are on?

  • November 12, 2025
  • 6 replies
  • 40 views

Forum|alt.badge.img

Hey Klaviyo super users. Let’s see if you can help me troubleshoot this use case: 

My company has 2 websites: revolutiondance.com and canada.revolutiondance.com. Most customers are based in the US and use the core site, but there are a lot of Canadian-specific things in our industry that make it necessary for us to have a separate Canadian site to serve Canadian customers. 

The problem we’re trying to solve RN: We are currently duplicating every single email campaign and sending to 2 different audiences -- one to US and one to Canada (for EVERY SINGLE campaign). The return on this effort just isn’t there. Based on the performance data of these Canadian emails, it is definitely just a better use of time to send 1 single version of email campaign that goes to our US site, and then set up a Klaviyo form that will redirect people to the Canadian website if we detect that they located in Canada. 

My question is: is it possible to dynamically change the destination URL in a Klaviyo form based on the page the user is currently on? IE: if they land on a specific US product page, can I format the “Go to URL” logic in a way that will redirect them to the Canadian version of that same page instead of just dumping them on Canadian homepage? 

Would love your thoughts here! 

6 replies

whereisjad
Expert Problem Solver IV
Forum|alt.badge.img+16
  • Expert Problem Solver IV
  • November 12, 2025

@Jbriz a couple of questions.

 

are the 2 websites connected to the same Klaviyo account?

If so I don’t understand why you cannot have 2 distinct Klaviyo forms one on the Canadian site and one on the US site so you won’t need to dynamically change the destination URL?  Maybe I am missing something


Mike-H
Problem Solver I
Forum|alt.badge.img+10
  • Problem Solver I
  • November 12, 2025

Yes I believe you can. Found this online...not sure if it’ll work yet. I’ll check myself soon and let you know. 

On the US website create your new form for this. Add your message for the CA visitors with a CTA “Switch to Canadian Site”. 

Set the geographic targeting setting of the form to only show this to visitors who’s IP is Canada based. Then add your dynamic redirect code in custom css & html settings. 

Test this code, see how it works. You can spoof your US based connection with VPN software to test this from the US.

<script>
window.addEventListener('klaviyoForms', function(e) {
  if (e.detail.type === 'submit') {
    // Capture the current page URL
    var currentPageUrl = window.location.href;
    
    // Replace US domain with Canadian domain
    var canadianPageUrl = currentPageUrl.replace('example.com', 'canada.example,com');
    
    // Redirect to the matching Canadian page
    window.location.href = canadianPageUrl;
    
    // Prevent default Klaviyo redirect behavior
    e.preventDefault();
  }
});
</script>

The JavaScript grabs whatever US page they're trying to go to, (assuming it’ll work for product URls too) swaps the domain to the Canadian version, and sends them to the exact same path on the Canadian site. No manual URL mapping needed—as long as both US and CA URLs mirror each other.


Mike-H
Problem Solver I
Forum|alt.badge.img+10
  • Problem Solver I
  • November 12, 2025

@whereisjad There’s no way to connect more than one website to a Kalviyo account, from what I know. 


whereisjad
Expert Problem Solver IV
Forum|alt.badge.img+16
  • Expert Problem Solver IV
  • November 12, 2025

@Mike-H you are assuming that his website is Shopify but its not if you actually visited it.  There is nothing that prevents someone from connecting multiple custom websites to one Klaviyo account.


Forum|alt.badge.img
  • Author
  • Contributor I
  • November 12, 2025

@whereisjad its a good question -- i know that the ideal setup would be that we have 2 Klaviyo accounts, one each connected to a BigCommerce domain. However due to our back-end ERP system, we funnel everything into a single account so the Canadian website is not actually connected to any Klaviyo account. We basically just pull people out whose accounts are based in Canada into a specific segment within the US account.


Byrne C
Community Manager
Forum|alt.badge.img+27
  • Community Manager
  • November 17, 2025

Hi ​@Jbriz,

Curious to know if you made any headway here! Did you try ​@Mike-H’s solution, or implement any other workarounds? Natively, I can confirm that there’s not a way to have a form button direct to different pages, depending on a site visitor’s location.