Get User IP Address With Google Tag Manager

Standard

Visitor IP Address with Google Tag Manager pass into Google Analytic

Recently one of client ask to get visitor IP Address using Google Tag Manager Also other details like City, Country , Longitude, latitude, Region Code, Region Name , Timezone, Currency Code and Currency Symbol etc,

Challenging here without Geo location API, you can not tracking these above details, either you need to buy a paid geo location API or free geo location API. Process involved in tracking Geo location API convert in Data layer to pass those information City, Country , Longitude, latitude, Region Code, Region Name , Timezone, Currency Code and Currency Symbol etc

First Install Google Tag Manager on the website and To get visitor IP Address with 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

It’s time to verify result with Google Tag Manager to Get Visitor Details like Website IP Address,  City, Country , Longitude, latitude, Region Code, Region Name , Timezone, Currency Code and Currency Symbol etc,

Fetch IP Geolocation Data Using Google Tag Manager

Get an IP address using Google Tag Manager to See Visitor IP Address

Get a Visitor's IP Address in Google Analytics

Get IP address to the 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 Visitor IP Address 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

Implementing Product Schema Markup & Structured Data SEO For Ecommerce Product Pages

Standard

Implementing Product Schema Markup For Ecommerce Product Pages using Google Tag Manager

Recently once client ask me to implement schema on e-commerce website and other local website using Google Tag Manager, once I look his website I said it’s possible to implement schema using Google Tag Manager with with JSON-LD. For Tracking product page schema need to apply some custom javascript or Data layer to Getting like Product price and Stock in or Stock out.

First you need to generate Product schema code using schema.org some other website to generate product schema with JSON-LD.

<div itemscope itemtype=”http://schema.org/Product”>
    <h1 itemprop=”name”>Prodcut Name</h1>
    <img src=”-product.png” alt=”Prodcut Alt Tag” itemprop=”image” />
    <p itemprop=”description”>
        This is a really amazing product. In fact, we think you will be amazed.
        <span itemprop=”sku”>123456789</span>
    </p>
    <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
        <span itemprop=”ratingValue”>4</span> stars, based on 
        <span itemprop=”reviewCount”>1,987</span> reviews.
    </div>
    <div itemprop=”offers” itemscope itemtype=”http://schema.org/Offer”>
        <meta itemprop=”priceCurrency” content=”USD” />
        $<span itemprop=”price”>For Product Price need to write custom javascript</span> |
        <span itemprop=”availability”>In-stock</span>
    </div>
</div>

 

 

MemberMouse Google eCommerce Tracking sales data into Google Analytics

Standard

Integration with Google Adwords/Analytics eCommerce Tracking for MemberMouse without putting a code on Website

MemberMouse Google eCommerce Tracking sales data into Google Analytics using Google Tag Manager

Recently once client ask to implement e-commerce tracking using google tag manager for membermouse, because they already tried couple of solution does not worked for him, once I have looked his website and said surely i will set up ecommerce tracking using google tag manager. bit challenge to e-commerce tracking for MemberMouse passing value of datalayer to work like form based e-commerce tracking take easy to payment from customer. 

See below screenshot of MemberMouse

MemberMouse eCommerce Tracking

MemberMouse Google eCommerce Tracking using Google Tag Manager

  1. First Install Google Tag Manager on MemberMouse for Set Up E-commerce 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

2. Written a a data layer to get value for price and Product etc then written a  javascript to get work E-commerce tracking for MemberMouse

MemberMouse Google eCommerce Tracking

Use custom javascript get value MemberMouse Google eCommerce Tracking

3.  Now written a custom with E-commerce tracking including a data layer code that will fire on success and create a tag and trigger to fire e-commerce tracking using Google Tag Manager for MemberMouse

Warning:if you do n’t know about javascript or do n’t have developing knowledge then do n’t try to MemberMouse Ecommerce Tracking using Google Tag Manager a custom javascript without using Any plugin that can broke your site, Cart and other functionality 

Disclaimer: Google tag manager belongs to Google property 

For Contact: mappchero@gmail.com