问题
I've been following numerous implementation guides on this feature and have yet to see the final result. What i'm trying to do is very standard: Add a custom dimension called User type to UA. My site uses Google Tag Manager.
Here are my implementation steps:
Created a custom dimension in UA
Created a Data Layer Variable name userType
Added the dimension to my Analytics page view tag

- Added the following code to page load:
var dimensionValue =$('#user_type').data('type');
dataLayer.push({'userType': dimensionValue});
Published the tag manager changes
When debugging through tag manager I see the following output:

- All looks legit right? So, why oh why, when I go to my custom report, do I see this:

I'd be grateful for any idea as to what the problem might be.
Thanks,
Uri
回答1:
You are trying to combine user based dimension and hit based metric. Try other metrics for your report
来源:https://stackoverflow.com/questions/30051978/custom-dimension-data-not-showing-in-analytics-using-google-tag-manager