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
<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 – Facebook 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
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
Step 4 – Facebook 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
Step 5 – Facebook 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
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