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

2.4K members online now
2.4K 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

Envent tracking and session problem

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I'm implementing google analytics on my site. I'm trying to track events but I really don't know why I don't get any event nor any session information.

However I have checked the real time menu overview and I can see sessions on my website but I can't see any event tracking.

The code I'm using for tracking events is:

function social(type, action, url) {        
('send', 'social', type , action, url); }


I know this function is executed because I can see the console.log

Any tip with the sessions and event tracking problem? Thanks

Re: Envent tracking and session problem

Follower ✭ ✭ ✭
# 2
Follower ✭ ✭ ✭
Hey Luis,

The code seems correct
Can you share the actual URL pls.

Also note, 'social' hit is different from 'event' hit. To the best of my knowledge it's only the event hit (not the social hit) that's currently exposed in Real Time reports.

Navigate to Acquisition > Social reports, which exposes 'social' hit data as
Social Network / Social Action / Social Entity (for the fields: socialNetwork' / 'socialAction' / 'socialTarget')

For troubleshoot purpose
a) You can use Chrome Dev Console (Network tab) and see that when the desired action occurs, a network request is made to end point: along with parameters t / sn / sa / st

B) Alternatively, use Google Analytics Debugger chrome plugin and see if GA 'social hit' is being sent

Also ensure you're not creating GA tracker with some custom name. If that's the case, append the tracker name with 'send' command. Like ga('myTracker.send',...)

Hope this helps,