AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
3.8K members online now
3.8K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Confirmation on 3rd party Ecomm Implementation

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Good day to you all!

 

I am working with a client that is proving to be a little difficult. We have implemented GTM on the website. They use a 3rd party shopping cart that will NOT use GTM. Therefore, we are using GTM on our site and Universal on theirs.

 

  • I have ecomm turned on in GA
  • Set up linkers in the Universal code
  • Called the ecomm plug-in
  • Set up tag to fire on transactions in GTM

 

The code they have is below (I can't confirm the implementation is correct Smiley Wink) for the 5 (page) payment process:

 

<script>

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)

  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

 

ga('create', 'UA-xxxxx-xx', 'auto', {'allowLinker': true });

 

ga('send', 'pageview');

 

ga('require', 'linker');

 

ga('linker:autoLink', ['domain.com']);

 

</script>

 

The final page has that, plus:

 

ga('require', 'ecommerce');

 

ga('ecommerce:addTransaction', {

  'id': '1234',                     // Transaction ID. Required.

  'revenue': '72.00',               // Grand Total.

});

 

ga('ecommerce:addItem', {

  'id': '1234',                     // Transaction ID. Required.

  'name': 'Name',    // Product name. Required.

  'category': 'Pants',         // Category or variation.

  'price': '72.00',                 // Unit price.

  'quantity': '1'                   // Quantity.

});

 

ga('ecommerce:send');

 

</script>

 

So, I've heard back to be told "It's all implemented" but, we're not putting it on 2 pages of the payment process where we collect Credit Card details. I believe that if they leave code of any page in the transaction process the session breaks, therefore we still won't see any transactionl data. Correct right?

 

Cheers for all advice - it's appreciated!

 

 

 

 

1 Expert replyverified_user

Re: Confirmation on 3rd party Ecomm Implementation

Top Contributor
# 2
Top Contributor
Hi,

I believe this may be useful - though not sure when the return to a tracked page happens and when the ecomm payload is sent in your case which may need some tinkering to see when the process usually ends (on a tracked page or on a non tracked page).

http://www.simoahava.com/gtm-tips/referral-exclusion-on-receipt-page/

Kind regards,
Zorin
Web analyst @ escapestudio.net

Re: Confirmation on 3rd party Ecomm Implementation

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆
Thanks Zorin,

Referrals aren't exactly the issue (however, great post on using GTM for this which I may end up using!).

I think I am second guessing myself....

If the 3rd party payment gateway has the following, for example:

Step 1 - Enter your name (has Universal tag)
Step 2 - Enter your contact details (has Universal tag)
Step 3 - Enter Payment method (no tag)
Step 4 - Enter Credit Card details (no tag)
Step 5 - Thank you page (has Universal tag and ecomm/transactional data)

I basically want to confirm that this will not work as expected Smiley Wink

Re: Confirmation on 3rd party Ecomm Implementation

Top Contributor
# 4
Top Contributor
Hi,

it should work if:
A. User ends up on your tagged page
B. You exclude the 3rd party checkout domain (this is one oof the reasons this feature exists)

Kind regards,
Zorin
Web analyst @ escapestudio.net