Website Building » BigCommerce » How do I add pixels to BigCommerce?

How do I add pixels to BigCommerce?

Last updated on September 25, 2022 @ 1:36 am

Adding pixels to your BigCommerce store is easy. Once you have your content prepared, all you need to do is add a few lines of code to your theme’s functions.

php file. Here’s how to do it:.

1. Open your theme’s functions.php file and locate the following line:

add_theme_support( ‘custom-theme-support’ );

2. Add the following line after the line above:

add_action( ‘custom_theme_setup’, ‘add_pixel_to_store’ );

3. Add the following function to your theme’s functions.php file:

function add_pixel_to_store() {

4. Add the following lines of code to your function:

$custom_theme = get_theme_options();

$pixel_file = ‘/path/to/your/pixel/file.jpg’;

$pixel_width = 480;

$pixel_height = 320;

5. Replace the values in the above code with the values for your own custom theme.

Note that you’ll need to replace the path to your pixel file, the width and height of the image, and the theme options you retrieved in Step 2.

PRO TIP: If you are considering adding pixels to your BigCommerce account, be aware that there are some potential risks. First, if you are not careful, you could end up with a lot of unwanted or even dangerous code on your site. Second, adding pixels can slow down your site and make it more difficult for visitors to use. Finally, if you are not careful, you could end up violating BigCommerce’s terms of service and getting your account suspended or even banned.

6. Save your changes and test your new pixel by refreshing your BigCommerce store.

You should now see your custom pixel in the theme options section of the admin panel.

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.