Analytics
2.7K members online now
2.7K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Custom dimensions and hitcallback

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I can't figure out how to do custom dimenisions call w/ a hitcallback on a track event. I have a link that I want to send some custom dimensions and properly track. If I just do the normal link then it doesn't track the event at all. I can't figure out how to properly format it.

As per https://developers.google.com/analytics/devguides/collection/analyticsjs/events. You can put in custom dimensions and mark as noninteractive, but there are no examples on how to do a hitcallback or transport beacon with custom dimensions. https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#transport.

If I do the hitcallback then it tracks everything, but the custom dimensions before doing the hitcallback with the href passed in. 

Any help would be appreciated.