• Hello,

    I have integrated my WordPress with Bigcommerce.

    The problem we are facing is that when we add the Klaviyo tracking code is not picking the right product variable values, and we are not able to find the correct variable names from the WordPress front end to replace them on the script so that it should pass these values to Klavio, here is the guide to add the script on Bigcommerce site.

    https://help.klaviyo.com/hc/en-us/articles/115005082547-How-to-Integrate-with-BigCommerce#add-viewed-product-tracking4

    We have successfully added the script on the site and it’s sending information to Klaviyo but it’s not picking up the right product values its sending the values as it’s written in the script.

    Thanks.

Viewing 1 replies (of 1 total)
  • Those instructions are for adding Klaviyo to a BigCommerce “Storefront” (a website built in BigCommerce). You have a WordPress site, so you have to change that script to get the values from your site.

    In that script you’ve added to the site, you’ll see things surrounded by double brackets, like this: {{product.id}}

    If your site was a BigCommerce Storefront, then those values would automatically be pulled in from the product page. On your site, you’ll need to change the script to pull in these values from your page. There are a couple of ways to approach this.

    First, if you are working on a custom theme and inserting this script into a template file, then you can get these values using PHP and insert them into the script.

    On the other hand, if you are using a plugin or some other method to get this script added to your pages, then you will need to use javascript and edit the script that you are inserting. You’ll need to make sure the script is in the footer so the page elements will be loaded and then you will write javascript to read these values from the page itself or from data elements and fill them in.

    Either way, you’ll probably need a web developer if you don’t have one, but you might be able to pull this off yourself if you’ve got enough time to dig into it. Good luck!

Viewing 1 replies (of 1 total)
  • The topic ‘Bigcommerce product tracking issue ( Variables are not matching)’ is closed to new replies.