In my previous article, I explained how to integrate the Facebook Pixel with a Drupal webform. I used the Simple Facebook Pixel module to send the purchase event to Facebook. In this article, we are going to see how to send the purchase event by using Google Tag Manager.
In this article, we are going to find out just how easy is to integrate the Facebook Pixel with a webform. This can be useful for example if you are using webforms for a quick checkout instead of using the full checkout flow that Drupal Commerce offers.
In just two simple steps you can remove the Login or continue as guest pane and simplify your checkout process. In my opinion, this step is completely unnecessary and just confuses your customers.
As of writing this article, there is no module that allows you to create a Facebook Product Catalog in combination with Drupal 8 and Drupal Commerce 2.x. That's why I'm open-sourcing my custom solution today.
Implementing Out of Stock feature in Drupal Commerce 2.x is easy. Unfortunately, you can't just enable this feature, because Commerce doesn't support it out of the box. You have to get your hands dirty and write some code.