3
0 Comments

How To: Track scroll depth with GA on Carrd (or... anywhere?)

I spent a good part of today figuring out how to track scroll depth with Google Analytics on my new Carrd website.

If you'd like to do the same on Carrd (or almost any website using GA, I think), here's the code I used:
https://gist.github.com/GrahamLea/b0062b80405fdb78973703a6d0c5fa5a
On Carrd, you need to include that into a custom embed. On other platforms, you'll need to get it into the page source somehow.

Probably worth adding that, if you're using Google Tag Manager to connect your site to Google Analytics, it looks like you can do the same thing with no code:
https://support.google.com/tagmanager/answer/7679218?hl=en
But if you're stuck with pure GA, the above should work.

You can check out my new site here if you're curious: https://archium.carrd.co/

on October 16, 2019