Tracking Members in Google Analytics


I’m new to Ghost so sorry if this is a stupid question!

I’ve integrated Google Analytics and it’s working fine. Now I’d like to differentiate Members vs Visitors in the analytics (i.e. with a custom dimension)

I don’t see an obvious way to do this? Any suggestions welcome! :slight_smile:



1 Like

What you could do is check if the cookie=ghost-members-ssr.sig exists, and give that back as a dimensionValue in your analytics script.

ghost-members-ssr.sig cookie gets deleted as soon as you log out.
ghost-members-ssr cookie stays, but gets a placeholder value=[object Object] instead of users email.

1 Like

Are those cookies accessible via js? I thought they were HTTPOnly :confused:

Thanks Daniel, I’ll give it a try! Cheers, dave