Analytics
1.8K members online now
1.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

userid view with user id reporting enabled not showing e commerce data

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I have this is issue with an account with few views:

in the regular view i see ecommerce data.

in the user id view (with user reporting on and ecommerce on) i don't see the ecommerce data .

 

any ideas way? 

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author tsvika m
February 2016

Re: userid view with user id reporting enabled not showing e commerce

Participant ✭ ✭ ☆
# 3
Participant ✭ ✭ ☆
You must send user id with all hits.
But I'm guessing you're not doing that with e-commerce hits.

View solution in original post

Re: userid view with user id reporting enabled not showing e commerce

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭
Hi,

Look here https://support.google.com/analytics/answer/6205850?hl=en#clientid-userid
Did you set up good for user id and ecommerce?

SH
Marked as Best Answer.
Solution
Accepted by topic author tsvika m
February 2016

Re: userid view with user id reporting enabled not showing e commerce

Participant ✭ ✭ ☆
# 3
Participant ✭ ✭ ☆
You must send user id with all hits.
But I'm guessing you're not doing that with e-commerce hits.

Re: userid view with user id reporting enabled not showing e commerce

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Thanks for the help! it worked after adding the userid also to the eCommerce hit

Re: userid view with user id reporting enabled not showing e commerce

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Hi, how do I add the user ID to enhanced e-commerce transaction tracking? How do I push it into the transaction data in the data layer?

Re: userid view with user id reporting enabled not showing e commerce

Participant ✭ ✭ ☆
# 6
Participant ✭ ✭ ☆

You have to set userId field in every event and pageview hits.

 

Create "user_id" dataLayer variable and set its name to "user_id":

 

user_id-variable.png

 

Go to Tag configuration, choose "More settings "and set userId field like this:

 

set-userid.png

 

To send userId you just need to add it to dataLayer object:

 

dataLayer.push({
  'user_id': user_id,  //user_id is JavaScript variable holding your userId value
  'event': 'addToCart',
  'ecommerce': {
    'currencyCode': 'EUR',
    'add': {                              
      'products': [{
        'name': 'Triblend Android T-Shirt',
        'id': '12345',
        'price': '15.25',
        'brand': 'Google',
        'category': 'Apparel',
        'variant': 'Gray',
        'quantity': 1
       }]
    }
  }
});

But this require a lot of work.
Instead you can set a 1st Party Cookie with user_id (after user login) and then create 1st Party Cookie variable in GTM.

 

 

Re: userid view with user id reporting enabled not showing e commerce

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭
I'm getting this same issue. Is there a fix? Everything is set up great. Eccomerce data goes through on other views and those have user ids attached. Ideas?

Re: userid view with user id reporting enabled not showing e commerce

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭
in my case i didn't send the event with userid in the same hit. send it in it solve the issue and data is passing well

userid view with user id reporting enabled not showing e commerce data

Visitor ✭ ✭ ✭
# 9
Visitor ✭ ✭ ✭

Hi Tomasz,

 

We have a hardcoded implementation of Universal ANalytics for legacy reasons. We can see user id data like users,session coming fine but our e commerce data is much much lower than the non user-id view. COuld it be that we have the same problem?

Thanks! 

userid view with user id reporting enabled not showing e commerce data

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭

Hi there! Did you found a solution?