Setup OpenCart Facebook Pixel Conversions using Google Tag Manager

Standard

Setup Standard Dynamic Facebook Pixel in OpenCart using Google Tag Manager 

Recently once client asks me to implement standard dynamic Facebook Pixel for OpenCart using Google Tag Manager and other Facebook events like content view, AddtoCart, InitiateCheckout, Purchase and conversion tracking without touching any plugins.Facebook dynamic pixel help you re targeting users who visited product page or checkout, cart pages without buying a product, For that you require set up a dynamic Facebook pixel in OpenCart to pass dynamic value in content_type, content_ids and contents.

content_category —–>String —–>Category of the page/product.

content_name —–>String —–> Name of the page of product for WooCommerce

content_type —–>String —–> It should be product 

currency —–>String —–> value of Currency of WooCommerce 

value —–>Integer or float —–> Amount of product , Cart and Purchase order confirmation

Step 1: Install Google Tag Manager on Standard Dynamic Facebook Pixel in OpenCart using Google Tag Manager without any plugins

Paste this code as high in the <head> of the page as possible:
<!– 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 –>
Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<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)– It will tell you some one visited to Product Page to setup viewContent get parameters pass to dynamic value to Facebook Pixel on OpenCart

OpenCart Facebook Pixel

Opencart Facebook Conversion Tracking Pixel using Google Tag Manager

Step 3 – Facebook AddtoCart Pixel – When some body Click on addtoCart button to fire OpenCart Facebook Standard Pixel using Google Tag Manager without any plugins 

Facebook Pixel Tracking

Standard Dynamic Facebook Pixel Tracking using Google Tag Manager

Step 4Facebook InitiateCheckout Pixel –  When a user enters the checkout flow to OpenCart Facebook Standard Pixel using Google Tag Manager without any plugins

OpenCart Standard Dynamic Facebook Pixel

InitiateCheckout facebook pixel using Google Tag Manager without any plugins

Step 5Facebook Purchase Pixel –  When customer completed on purchase on Facebook Pixel setup using Google Tag Manager

OpenCart Facebook Conversion Tracking Pixel

OpenCart Facebook Integration 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 Setup OpenCart Facebook Pixel Conversions using Google Tag Manager 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

OpenCart Google Adwords Dynamic Remarketing using Google Tag Manager

Standard

OpenCart Google Adwords Dynamic Remarketing Setup using Google Tag Manager without any Plugins

Recently, one of client asks to implement Dynamic Remarketing Pixel setup on Opencart using Google Tag Manager without any plugins. Google Ads Dynamic Remarketing Tag to pass custom parameters using Google Tag Manager without touching Code of the openCart. To Pass custom variable ecomm_prodid, ecomm_pagetype and ecomm_totalvalue, To work dynamic remarekting in OpenCart , You require to setup dynamic paramaters in Google Analytic as Custom Dimension.

  • ecomm_prodid: “REPLACE_WITH_STRING_VALUE“,
  • ecomm_pagetype: “REPLACE_WITH_STRING_VALUE“,
  • ecomm_totalvalue: REPLACE_WITH_STRING_VALUE

Step 1: Install Google Tag Manager on OpenCart Google Adwords Dynamic Remarketing Setup using Google Tag Manager without any plugins

Paste this code as high in the <head> of the page as possible:
<!– 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 –>
Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<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 – Home Page – Google Adwords Dynamic Remarketing Setup for OpenCart using Google Tag Manager without touching website code or any Plugins

OpenCart Google Adwords Dynamic Remarketing

Google Adwords Dynamic Remarketing in OpenCart using Google Tag Manager

Step 3Product Page – When users are visited to product pages then based on that users retargeted Google Adwords Dynamic Remarketing in OpenCart using Google Tag Manager without any plugins

Google adwords Dynamic Remarketing in OpenCart

Setup Google adwords Dynamic Remarketing in OpenCart using Google Tag Manager

Step 4 – Cart Page –  When user entered to Cart Pages to Dynamic Remarketing Tags in Opencart using Google Tag Manager without any plugins 

Setup Google Adwords Remarketing on OpenCart

OpenCart Dynamic Remarketing Setup using Google Tag Manager without any plugins

Step 5 – Purchase – When user will complete purchased based dynamic remarketing that will not retargeted on Opencart Dynamic Remarketing 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 OpenCart Google Adwords Dynamic Remarketing 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

Enhanced E-comerce and eCommerce Tracking for OpenCart using Google Tag Manager

Standard

Are you looking to implement Enhanced Ecommerce and eCommerce Tracking for OpenCart using Google Tag Manager using Javascript without making any change on the openCart.

Recently once client want to implement e-commerce tracking without any plugin or without making changes on the website and challenges accepted and implemented through Google Tag Manager.

Google Analytics Improved Enhanced Ecommerce enable sales information,product impression, promotion, sales data to be sent with any of occasions and your Google Analytics pageviews. Use pageviews to monitor product purchases and product impressions, and use occasions to monitor product clicks and checkout measures.

What is Enhanced E-commerce Tracking for OpenCart using Google Tag Manager?

Because Opencart is an Ajax website, I decided to implement through Using a Custom JavaScript Macro

opencart google analytics ecommerce tracking

Custom Javascritp opencart analytics ecommerce tracking

To Implement Enhanced Ecommerce Tracking OpenCart using Google Tag Manager

  1. First Install Google Tag Manager on Your OpenCart for Set Up E-commerce Tracking using Google Tag Manager without touch Code of OpenCart
Paste this code as high in the <head> of the page as possible:
<!– 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 –>
Additionally, paste this code immediately after the opening <body> tag:
<!– Google Tag Manager (noscript) –>
<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

2. Product Detail Impressions: To Track product impression for OpenCart E-commerce and Enhanced E-commerce Tracking using Google Tag Manager used custom javascript to get the value of price, product and brand etc

Implementation of Google Tag Manager in OpenCart

Ecommerce Tracking through Google Tag Manager to Opencart

2.  Add to Cart: To measure additions add to Cart Product added for OpenCart Enhanced Ecommerce Tracking using Google Tag Manager used custom javascript to get the value of price, product and brand etc

eCommerce Tracking for OpenCart

Opencart Enhance Ecommerce with Google Tag Manager

3.  Measuring Checkout Steps: To measure Checkout Steps that will tell us , How many people reach to till checkout and drop out and went till another step for Opencart Enhanced Ecommerce with Google Tag Manager

OpenCart Google Tag Manager Ecommerce Tracking

Google Tag Manager Ecommerce Tracking on Opencart