Git Product home page Git Product logo

woocommerce-facebook-conversion-pixel's Introduction

WooCommerce Facebook Conversion Pixel

License

Set up the Facebook conversion pixel and event tracking for WooCommerce

Features:

  • Include the Facebook Tracking Pixel code on every page
  • Track events in your WooCommerce Store:
    • View Product
    • Add To Cart
    • Proceed to Checkout
    • Order received

Installation

  1. Upload plugin to the /wp-content/plugins/ directory.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. Installation done!

Screenshots

Customise which events to track, or track them all!

Integration settings page

woocommerce-facebook-conversion-pixel's People

Contributors

anttiviljami avatar galapogos01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

woocommerce-facebook-conversion-pixel's Issues

$products global called before the_post()

I've found that the global $product on line 81 (and possibly line 122) only return the product title and not the product object. This throws an error because it can't access the get_title method on the next line. I believe this is because they are called before the_post() function. According to the Woo docs the_post() function populates the global $product variable. Having said that this plugin looks really well written so perhaps the fault is my own. However I tried this on a fresh install with only Woo and the plugin.

To fix it I simply replaced global $product with

global $post; $product = wc_get_product( $post->ID );

Also thanks for your great work, everything else worked really well and I love the plugin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.