Integrate Facebook Pixel with Magento/Magento 2 using Google Tag Manager without any plugins
Recently once of client asked to implement Facebook pixel on Magento/Magneto 2 using Google Tag Manager without touching any code and Plugin of Mangento. Also client mentioned they want run dynamic Facebook pixel, so that he can retargeting with Facebook pixel with Manento/Magento 2 using Google Tag Manager without any plugins.
Standard Events for Facebook Pixel with Magneto/Mangento 2 using Google Tag Manager without any Plugin with dynamic parameters like content_type and either content_ids or contents
Step 1: Install Google Tag Manager on Advanced Magento Facebook Pixel Events for Dynamic Ads without Any Plugins using Google Tag Manager
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-XXXX’);</script>
<!– End Google Tag Manager –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>
Note: Make you will replace GTM Tracking Code with your GTM ID XXXXX
Step 2 – Product Page (ViewContent)– User visited to Product Page to setup viewContent get parameters pass to dynamic value to Facebook Pixel Remarketing on Magento/Magento 2
Step 3 – Product Page (AddToCart)– User Visited to Product Page and Click on AddToCart, Product added to Shopping cart to setup Magento/ Magento 2 Facebook Pixel using Google Tag Manager without Any plugins
Step 4 – InitiateCheckout – When user started process to buy a product Magento 2 Facebook Pixel using Google Tag Manager without Any plugins
Step 5 – Purchase – When user completed purchase setup Facebook Pixel into Magento/Magento 2 using Google Tag Manager without any plugins
Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Advanced Mangento 2 Facebook Pixel Events for Dynamic Ads without Any Plugins using Google Tag Manager that can broke your site, Cart and other functionality
Disclaimer: Google tag manager belongs to Google property
For Contact: mappchero@gmail.com
I am available for Hire on Freelancer: Freelancer.com
I am available for Hire on Upwork: Upwork.com
I am available for Hire on Peopleperhour: Peopleperhour.com
I am available for Hire on Guru: Guru.com