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!
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.
We’ve documented a few analytics integrations that might be helpful to you!
Google Analytics, while free to use, is not very accurate because it is frequently blocked. There’s some further information in this thread about using the @member.uuid to track members.
These analytics options may be of interest instead:
Fathom Analytics is a paid alternative which has a much less chaotic dashboard, and you can also set Fathom up to bypass ad-blockers so your data is more accurate. You can create events too, and anonymously track which posts are the most popular, or how many people have signed up to become a member.
Amplitude is a product analytics tool that allows you to measure important member engagement metrics — for example, to see which of your members has viewed the homepage, or posts on your site. Implementing Amplitude is more advanced, but it can be very powerful and they do have a free plan available.