Tracking Ruby on Rails GA4 eCommerce Purchases without Plugin

Standard

Setup Ruby on Rails Google Analytics 4 (GA4) with Google Tag Manager without Plugin

Google Analytics 4 eCommerce Tracking on Ruby on Rails without a plugin refers to the process of implementing eCommerce tracking in a Ruby on Rails application using Google Analytics 4 without relying on third-party plugins or libraries.

This can be accomplished by using the Google Analytics Measurement Protocol API to send data directly to Google Analytics. To do this, developers must create HTTP requests with the appropriate parameters and send them to the Measurement Protocol endpoint.

Alternatively, Google Tag Manager can be used to implement eCommerce tracking without relying on plugins. This involves setting up a Google Tag Manager container, adding the Google Analytics 4 tag, and configuring ecommerce tracking parameters and triggers. Developers must also add data layer variables to pages and push ecommerce data to the data layer on relevant pages.

To implement Google Analytics 4 eCommerce tracking on Ruby on Rails without a plugin using Google Tag Manager, you can follow these steps:

  1. Set up a Google Tag Manager container and add the Google Analytics 4 tag to it.

2. In the Google Analytics 4 tag, enable the ecommerce tracking feature and set up your product and transaction parameters.

3. In your Ruby on Rails application, add the Google Tag Manager container code to your pages.

4. Add data layer variables to your pages that capture the necessary ecommerce data, such as product IDs, transaction IDs, and total transaction value.

5. Push the ecommerce data to the data layer on relevant pages, such as product detail pages and checkout pages.

6. Use Google Tag Manager to create triggers that fire the Google Analytics 4 tag when ecommerce events occur.

7. Test your implementation by placing test orders and verifying that the ecommerce data is being tracked correctly in Google Analytics.

Setup Ruby on Rails Google Analytics 4 (GA4)

Ruby on Rails Google Analytics 4 eCommerce Tracking Purchases without Plugin with Google Tag Manager

Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Setup Ruby on Rails Google Analytics 4 (GA4) with Google Tag Manager without Plugin or Plugins 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

Set Up Ruby on Rails GA4 (Google Analytics 4) Using Google Tag Manager

Standard

Implementation Enhanced Ecommerce Google Analytics 4 (GA4) on Ruby on Rails with Google Tag Manager

Recently once of client asks to implement GA4 Enhanced eCommerce tracking in Ruby on Rails using Google Tag Manager and wrote a data layer on Ruby on Rails store or exiting data layer converted into GA4 Data Layer Formate for Ruby on Rails

Ruby on Rails Googl Analytics 4

Setting up Google Analytics 4 (GA4) with Ruby on Rails using Google Tag Manager

Ruby on Rails GA4 Events Tracking via GTM Enhanced Ecommerce Tracking using Google Tag Manager 

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

Ruby on Rails GA4 Enhanced Ecommerce Events for view_item_list: To Track when user reach out category pages where list of product listed on the Page for GA4 (Google Analytics 4) Enhanced Ecommerce Tracking for Ruby on Rails using Google Tag Manager

Google Analytics 4 Ruby on Rails Integration

Install Google Analytics 4 (GA4) on Ruby on Rails using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for select_item: To Track when user click on list of product listed on the pages using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager

GA4 For Ruby on Rails

Google Analytics for Ruby on Rails (GA4) using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for view_item: To Track when user visit a product details page using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager

Ruby on Rails GA4 Data Layer

Google Analytics 4 for Ruby on Rails integrated using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for add_to_cart: To Track when user visit a product details page then Click on AddtoCart using GA4 Enhanced Ecommerce Tracking for Ruby on Rails using Google Tag Manager

Google Analytics for Ruby on Rails (GA4)

Integrate Google Analytics 4 for Ruby on Rails using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for add_to_wishlist: To Track when Add a product into Add to Wishlist using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager

Add Google Analytics 4 to Ruby on Rails

Ruby on Rails Migrate from Google Universal Analytics to GA4 using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for view_cart: To Track when user entered to View Cart using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager

Google Analytics 4 in Ruby on Rails

Google Analytics 4 (GA4) Setup & Configuration in Ruby on Rails using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for remove_from_Cart: To Track when user remove a product from cart to remove_from_Cart using GA4 Enhanced Ecommerce Tracking for Ruby on Rails using Google Tag Manager

Google Analytics 4 Ruby on Rails

Google Tag Manager for Ruby on Rails GA4

Ruby on Rails GA4 Enhanced Ecommerce Events for begin_checkout: To Track when user entered to begin_checkout using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager 

Ruby on Rails Enhanced Ecommerce tracking in GA4

Correctly set up Google Analytics 4 (GA4) for Ruby on Rails using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for add_shipping_info: To Track when user entered to selected a Shipping Method using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager

Google Analytics 4 ecommerce Ruby on Rails

Integrate Google Analytics 4 with Ruby on Rails using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for add_payment_info: To Track when user entered to selected a Payment Method using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager

Google Analytics 4 Ruby on Rails Integration

Google Analytics 4 Data layer on the Ruby on Rails Order Page using Google Tag Manager

Ruby on Rails GA4 Enhanced Ecommerce Events for purchase: To Track when user completed purchase using GA4 Enhanced Ecommerce Tracking for Ruby on Rails Via Google Tag Manager

Integrate Google Analytics GA4 with Ruby on Rails

Google Analytics 4 / GA4 Enhanced Ecommerce tracking for Ruby on Rails using Google Tag Manager

Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Implementation Enhanced Ecommerce Google Analytics 4 (GA4) on Ruby on Rails 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

 

Google Analytics 4 (GA4) Enhanced Ecommerce for Drupal Ecommerce using Google Tag Manager

Standard

Drupal Google Analytics 4 (GA4) Enhanced Ecommerce using Google Tag Manager

Recently, one of client ask to me GA4 Enhanced eCommerce Tracking for Drupal using Google Tag Manager. I used two method get to work GA4 E-commerce and Enhanced eCommerce Tracking in Drupal, I wrote a Data layer on the Drupal and Also used Custom Javascript from Google Tag Manager for Drupal.

 Upgrade Google Analytics 4 (GA4) Drupal

Enhanced Ecommerce Google Analytics 4 (GA4) in Drupal using Google Tag Manager

Drupal GA4 Events Tracking via GTM Enhanced Ecommerce Tracking using Google Tag Manager 

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

Drupal GA4 Enhanced Ecommerce Events for view_item_list: To Track when user reach out category pages where list of product listed on the Page for GA4 (Google Analytics 4) Enhanced Ecommerce Tracking for Drupal using Google Tag Manager 

Drupal GA4 eCommerce

Get Advanced Analytics Drupal Store with GA4 using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for select_item: To Track when user click on list of product listed on the pages using GA4 Enhanced Ecommerce Tracking for Drupal Via Google Tag Manager

Implement Google Analytics 4 (GA4) Drupal

Setup Drupal GA4 (Google Analytics 4) via GTM

Drupal GA4 Enhanced Ecommerce Events for view_item: To Track when user visit a product details page using GA4 Enhanced Ecommerce Tracking for Drupal Via Google Tag Manager

Drupal Implementation GA4 eCommerce

Connect Google Analytics 4 (GA4) to Drupal using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for add_to_cart: To Track when user visit a product details page then Click on AddtoCart using GA4 Enhanced Ecommerce Tracking for Drupal using Google Tag Manager

Drupal Google Analytics 4

Drupal GA4 (Google Analytics 4) Ecommerce Tracking using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for add_to_wishlist: To Track when Add a product into Add to Wishlist using GA4 Enhanced Ecommerce Tracking for Drupal Via Google Tag Manager

Ecommerce Analytics GA4 Drupal

Configure Google Analytics 4 (GA4) in Drupal using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for view_cart: To Track when user entered to View Cart using GA4 Enhanced Ecommerce Tracking for Drupal Via Google Tag Manager

Drupal GA4 Ecommerce Migration

Drupal Google Analytics 4 (GA4) Enhanced eCommerce Tracking using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for remove_from_Cart: To Track when user remove a product from cart to remove_from_Cart using GA4 Enhanced Ecommerce Tracking for Drupal using Google Tag Manager

Get Drupal GA4 E-commerce Set up

Drupal Migrate from Google Universal Analytics to GA4 using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for begin_checkout: To Track when user entered to begin_checkout using GA4 Enhanced Ecommerce Tracking for Drupal Via Google Tag Manager 

Drupal GA4 Enhanced Ecommerce Setup

Migrating Drupal Enhanced Ecommerce Setup to Google Analytics 4 (GA4) using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for add_shipping_info: To Track when user entered to selected a Shipping Method using GA4 Enhanced Ecommerce Tracking for Drupal Via Google Tag Manager

GA4 Tracking For Drupal Site

Drupal GA4 eCommerce Report Revenue using Google Tag Manager

Drupal GA4 Enhanced Ecommerce Events for add_payment_info: To Track when user entered to selected a Payment Method using GA4 Enhanced Ecommerce Tracking for Drupal Via Google Tag Manager

‎Upgrade from GA 3 to Drupal GA4

Implement Google Analytics 4 (GA4) on Drupal using Google Tag Manager

Neto GA4 Enhanced Ecommerce Events for purchase: To Track when user completed purchase using GA4 Enhanced Ecommerce Tracking for Neto Via Google Tag Manager

Drupal Google Analytics 4 for Google Tag Manager

Implementation Google Analytics 4 on Drupal with Google Tag Manager

Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to GA4 Enhanced Ecommerce for Drupa 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

Dynamic Google Ads Remarketing Tags for Ruby on Rails using Google Tag Manager

Standard

Dynamic Google Ads Remarketing Tags for Ruby on Rails using Google Tag Manager without any plugins

Recently, one of client asks to implement Google Ads dynamic Remarketing tag pixel in Ruby on Rails using Google Tag Manager without any plug-ins. Once I started looking eCommerce website for Ruby on Rails, then I see the possibility to dynamic Remarketing tags on Ruby on Rails using Google Tag Manager without any plugins. For Dynamic Remarketing Tags, You need to custom parameters to ecomm_prodid, ecomm_pagetype and ecomm_value, all of these three value pass dynamically for each and every product.

  • 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 Google Dynamic Google Ads Remarketing Tags for Ruby on Rails 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 – When user visited there is so many putted then you need to pass ecomm_pagetype for Dynamic Google Ads Remarketing Tags for Ruby on Rails using Google Tag Manager

Dynamic Remarketing Tags for Ruby on Rails

Dynamic Remarketing Tags for Ruby on Rails using Google Tag Manager without any plugins

Step 3Product Page – When user visted to product pages then based on that dynamic remarketing pixel work for retargeted using Dynamic Remarketing Pixel for Ruby on Rails using Google Tag Manager

Ruby on Rails Google Dynamic Remarketing Tag

Dynamic Ads Google Dynamic Remarketing Pixel on Ruby on Rails using Google Tag Manager

Step 4 – Cart Page –  When users went to cart page to select before buy confirm they are selecting the right product or not, using Dynamic Google Ads Remarketing Tags for Ruby on Rails using Google Tag Manager

Dynamic Remarketing Tag in Ruby on Rails

Dynamic Ads Google Dynamic Remarketing Pixel for Ruby on Rails using Google Tag Manager without Google Tag Manager

Step 5 – Purchase – When user buy this product that will reported in Facebook that came from Facebook ads then you will able to calculate actual ROI from Facebook Ads

 Google Dynamic Remarketing for Ruby on Rails

Integrate the Google Dynamic Remarketing Tag into Ruby on Rails using Google Tag Manager

Warning: If you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Dynamic Google Ads Remarketing Tags for Ruby on Rails 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

Dynamic Standard Facebook Conversion Pixel In Ruby on Rails using Google Tag Manager

Standard

Dynamic Standard Facebook Conversion Pixel in Ruby on Rails using Google Tag Manager without any plugins

Recently one of client ask to implement Dynamic Standard Facebook Conversion Pixel In Ruby on Rails using Google Tag Manager without plugins, But once I looked Ruby on Rails, I asked to client place a test order to see custom paramaters to pass dynamic value of content_id, content_type and value

content_category —–>String —–>Category of the page/product In Ruby on Rails

content_id —–>String —–> Name of the page of product In Ruby on Rails

content_type —–>String —–> It should be product In Ruby on Rails

currency —–>String —–> value of Currency In Ruby on Rails

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

Step 1: Install Google Tag Manager on Dynamic Standard Facebook Conversion Pixel In Ruby on Rails 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 2Facebook ViewContent Pixel in Ruby on Rails – When user visited product Page then you need pass these 3 custom parameters to work Dynamic Standard Facebook Conversion Pixel In Ruby on Rails using Google Tag Manager

Facebook Conversion Pixel in Ruby on Rails

Facebook Pixel Integration on Ruby on Rails using Google Tag Manager without any Plugins

Step 3 – Facebook AddtoCart Pixel for Ruby on Rails –  When Click on AddtoCart  product added to basket Standard Facebook Pixel In Ruby on Rails using Google Tag Manager without any plugins

Standard Facebook Pixel on Ruby on Rails using Google Tag Manager

Tracking Events with Facebook pixel integration on Ruby on Rails using Google Tag Manager without any plugins

Step 4Facebook InitiateCheckout Pixel for Ruby on Rails  –  When user started initiated to process to address to Payment and Dynamic Standard Facebook Conversion Pixel In Ruby on Rails using Google Tag Manager

Install Facebook pixel in Ruby on Rails using Google Tag Manager without any plugins

Step 5Facebook Purchase Pixel for Ruby on Rails –   When user completed purchased and  pass dynamic value of Purchase Standard Facebook Conversion Pixel In Ruby on Rails using Google Tag Manager

Facebook Conversion Pixel for Ruby on Rails

Ruby on Rails on Facebook Purchase Pixel 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 Dynamic Standard Facebook Conversion Pixel In Ruby on Rails 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

Dynamic Google Ads Conversion tracking for Ruby on Rails using Google Tag Manager

Standard

Dynamic Google Ads Conversion Tracking for Ruby on Rails using Google Tag Manager without Any Plugins

Recently once of client ask me to implement Dynamic Ads Conversion Tracking on Ruby on Rails using Google Tag Manager without Any Plugins. Once I looked the Ruby on Rails and asked to client need to place a test, To see the possibility of Dynamic Google Ads Conversion tracking for Ruby, Once I placed a test order, then I saw the possibility of Dynamic Ads Conversion Tracking, For Google Ad Conversion Tracking you need pass dynamic value of the transaction total and Transaction Id for avoid duplicate transaction.

Step 1: Install Google Tag Manager on Dynamic Google Ads Conversion tracking for Ruby on Rails 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

It’s time to verify Get value of Dynamic Google Ads Conversion tracking for Ruby on Rails using Google Tag Manager without any plugins

Dynamic Google Ads Conversion tracking for Ruby on Rails

Get Dynamic Values in Dynamic Google Ads Conversion tracking for Ruby on Rails 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 Dynamic Google Ads Conversion tracking for Ruby on Rails 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

 

 

 

Google Analytics Enhanced Ecommerce Tracking on Ruby on Rails using Google Tag Manager

Standard

Enhanced Ecommerce Tracking on Ruby on Rails using Google Tag Manager without Any Plugins

Recently, one of client asks to implement Google Analytic Enhanced eCommerce Tracking on Ruby on Rails using Google Tag Manager without Any Plugin, Once I looked Ruby on Rail Order confirmation pages, then I see the possibility of Enhanced eCommerce Tracking without Any Plugins on the Ruby on Rails. Before that I asked to client a place an test order to see possibility to enhanced Ecommerce tracking on Ruby on Rails.

Step 1: Install Google Tag Manager on Google Analytics Enhanced Ecommerce Tracking on Ruby on Rails 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

After Written a Data layer in Google Tag Manager to work Enhanced Ecommerce Tracking for Ruby on Rails using Google Tag Manager without Any Plugins and Data Layer help push enhanced Ecommerce Tracking into Google Analytic

Enhanced Ecommerce Tracking on Ruby on Rails

Enhanced Ecommerce Tracking on Ruby on Rails 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 Google Analytics Enhanced Ecommerce Tracking on Ruby on Rails using Google Tag Manager without any plugins 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